LevisLibs::JSON.parse(json_string,
symbolize_keys: boolean,
extensions: boolean)
json_string
- String
to be deserialized
symbolize_keys
- true
/false
: turn the keys of hashes into Symbol
s?
extensions
- true
/false
: turn the extensions (lossless Symbol
deserialization, user object serialization) on?
serializing basic types to json
obj.to_json(indent_size: uint,
minify: boolean,
extensions: boolean)
indent_size
- uint
: width of indentation
minify
- true
/false
: whether to minify the json, overrides indent_size
extensions
- true
/false
: turn the extensions (lossless Symbol
deserialization, user object serialization) on?
Hash
Array
Integer
Float
true
false
String
Symbol
(lossy conversion if extensions
is false
)