Class Functions:
- MakeRoot
- Free
- Empty
- Count
- First
- Object
- Array
- String
- Boolean
- Number Class
- Insert Class
- Delete
- Generate
- Format
- Parse
Create a root object or array node and assign it to the class.
Free the JSON node tree in the object or array class.
Returns false if the class does not have a JSON root node, true otherwise.
Returns the number of items in the object or array.
Returns the 1st item (JSON_NODE*
) in the object or array.
Get an object using a key (JSON_OBJECT
) or index (JSON_ARRAY
).
Get an array using a key (JSON_OBJECT
) or index (JSON_ARRAY
).
Get a string using a key (JSON_OBJECT
) or index (JSON_ARRAY
).
Get a boolean using a key (JSON_OBJECT
) or index (JSON_ARRAY
).
Get a number using a key (JSON_OBJECT
) or index (JSON_ARRAY
).
Function | Description |
---|---|
Double | Returns the number as a double |
Int | Returns the number as a int |
Long | Returns the number as a long |
Int64 | Returns the number as a long long (64-bit int) |
String | Returns the number as a string |
Insert an item. JSON_OBJECT
takes a key as a parameter, JSON_ARRAY
does not.
Function | Description |
---|---|
Object | Returns a JSON_OBJECT class |
Array | Returns a JSON_ARRAY class |
String | Returns the created JSON_NODE* pointer that contains the key-value pair |
Boolean | Returns the created JSON_NODE* pointer that contains the key-value pair |
Function | Description |
---|---|
Double | Returns the created JSON_NODE* pointer that contains the key-value pair |
Int | Returns the created JSON_NODE* pointer that contains the key-value pair |
Long | Returns the created JSON_NODE* pointer that contains the key-value pair |
Int64 | Returns the created JSON_NODE* pointer that contains the key-value pair |
String | Returns the created JSON_NODE* pointer that contains the key-value pair |
Delete an item from a JSON_OBJECT or JSON_ARRAY using a key, index number or reference.
Calls the JSON_Generate function.
Sets the format for the object or array, this will override the format parameter passed to JSON_Generate. See JSON_Generate for details about JSON formatting.
Calls the JSON_Parse function.