Skip to content
chrisd1100 edited this page Aug 25, 2022 · 2 revisions

JSON parsing and construction.

Functions

Name Brief
MTY_JSONParse Parse a string into an MTY_JSON item.
MTY_JSONReadFile Parse the contents of a file into an MTY_JSON item.
MTY_JSONDuplicate Deep copy an MTY_JSON item.
MTY_JSONGetType Get the MTY_JSONType of an MTY_JSON item.
MTY_JSONDestroy Destroy an MTY_JSON item.
MTY_JSONSerialize Serialize an MTY_JSON item into a string.
MTY_JSONWriteFile Serialize an MTY_JSON item and write it to a file.
MTY_JSONNullCreate Create a new MTY_JSON null item.
MTY_JSONBoolCreate Create a new MTY_JSON boolean.
MTY_JSONBool Get the bool value from an MTY_JSON boolean.
MTY_JSONNumberCreate Create a new MTY_JSON number.
MTY_JSONIntCreate Create a new MTY_JSON number, internally represented as a 32-bit integer.
MTY_JSONNumber Get the double value from an MTY_JSON number.
MTY_JSONInt8 Get the int8_t value from an MTY_JSON number.
MTY_JSONInt16 Get the int16_t value from an MTY_JSON number.
MTY_JSONInt32 Get the int32_t value from an MTY_JSON number.
MTY_JSONFloat Get the float value from an MTY_JSON number.
MTY_JSONStringCreate Create a new MTY_JSON string.
MTY_JSONString Get the string value from an MTY_JSON string.
MTY_JSONStringPtr Get the internal string pointer from an MTY_JSON string.
MTY_JSONArrayCreate Create a new MTY_JSON array.
MTY_JSONArrayGetLength Get the number of items in an MTY_JSON array.
MTY_JSONArrayGetItem Get an item from an MTY_JSON array.
MTY_JSONArraySetItem Set an item in an MTY_JSON array.
MTY_JSONObjCreate Create a new MTY_JSON object.
MTY_JSONObjGetNextKey Iterate through all keys in an MTY_JSON object.
MTY_JSONObjGetItem Get an item from an MTY_JSON object.
MTY_JSONObjSetItem Set an item in an MTY_JSON object.

Enumerations

Name Brief
MTY_JSONType JSON types.
Clone this wiki locally