Skip to main content

Module json

Module json 

Source
Expand description

JSON serialization and deserialization

Windjammer’s std::json module maps to these functions.

Functions§

array
Create a JSON array
boolean
Create a JSON boolean value
get
Get value from object by key
get_bool
Get boolean from object by key
get_index
Get array element by index
get_number
Get number from object by key
get_string
Get string from object by key
is_empty
Check if array or object is empty
len
Get length of array or object
null
Create a JSON null value
number_f64
Create a JSON number value from f64
number_i64
Create a JSON number value from i64
object
Create a JSON object (map)
parse
Parse JSON string into a Value
set
Set value in object by key
string
Create a JSON string value
stringify
Convert Value to JSON string
stringify_pretty
Convert Value to pretty-printed JSON string