Persistent Object Storage and Encoding/Decoding
At times, it becomes necessary to store data like strings, lists, dictionaries, tuples, and other structures permanently. For this purpose, Python's pickle module proves useful. This module allows conversion of objects into formats suitable for storage or retrieval.
The pickle module facilitates serialization and deserialization processes. Seri ...
Posted on Mon, 22 Jun 2026 19:01:28 +0000 by cassius
JSON Handling in Golang
JSON Encoding in Golang
To convert Go data structures to JSON (serialization), use json.Marshal. Here are examples with different data types:
//go:generate goversioninfo
package main
import (
"encoding/json"
"fmt"
)
func main() {
// Encode a map to JSON
mapData := map[string]int{"user_id": 9527, "role&qu ...
Posted on Mon, 18 May 2026 09:36:50 +0000 by Liquidedust