Documentation ¶
Overview ¶
Package json provides various JSON serialization/deserialization routines.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromJSON ¶
func FromJSON(data []byte) interface{}
FromJSON deserializes value from json. It uses `System.Json.Deserialize` syscall. It performs deserialization as follows: strings -> []byte (string) from base64 integers -> (u)int* types null -> interface{}(nil) arrays -> []interface{} maps -> map[string]interface{}
func ToJSON ¶
func ToJSON(item interface{}) []byte
ToJSON serializes value to json. It uses `System.Json.Serialize` syscall. Serialization format is the following: []byte -> base64 string bool -> json boolean nil -> Null string -> base64 encoded sequence of underlying bytes (u)int* -> integer, only value in -2^53..2^53 are allowed []interface{} -> json array map[type1]type2 -> json object with string keys marshaled as strings (not base64).
Types ¶
This section is empty.