Simple JSON  0.1
A free simple json library for C
simple_json_array.h
Go to the documentation of this file.
1 #ifndef __SIMPLE_JSON_ARRAY_H__
2 #define __SIMPLE_JSON_ARRAY_H__
3 
4 #include "simple_json_value.h"
5 #include "simple_json_list.h"
6 #include "simple_json_string.h"
7 
9 
10 void sj_array_free(SJson *array);
11 
12 void sj_array_append(SJson *array,SJson *value);
13 
14 SJson *sj_array_get_nth(SJson *array,int n);
15 
23 
30 
31 #endif
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