1 #ifndef __SIMPLE_JSON_ARRAY_H__ 2 #define __SIMPLE_JSON_ARRAY_H__ this is the abstract container structure for all json data This structure may be an object...
void sj_array_free(SJson *array)
SJson * sj_array_new()
allocate a new empty json array
SJson * sj_array_get_nth(SJson *array, int n)
retrieve the nth element in the json array
SJString * sj_array_get_nth_as_string(SJson *array, int n)
retrieve the nth element in the json array assumed to be a string
a basic structure that keeps track of a string and its length Automatically grows to accomodate longe...
void sj_array_append(SJson *array, SJson *value)
append to a JSON array a new value
SJString * sj_array_to_json_string(SJson *array)
get the contents of the array as a formatted json string for output