Json module

Json_Value

structSource

One JSON value. Only the fields of its kind are used: BOOL boolean NUMBER text, the number as written (exact for integers of any size; see json_as_s64) STRING text, the contents with escapes resolved ARRAY items OBJECT members, in document order (duplicate keys are kept; json_get finds the last) Everything a Json_Value owns comes from context.allocator; free_json releases it.

Fields

kind: Json_Kind
boolean: bool
text: string
items: [..] Json_Value
members: [..] Json_Member

See also