Simple JSON
0.1
A free simple json library for C
|
Go to the source code of this file.
Classes | |
struct | SJson_S |
this is the abstract container structure for all json data This structure may be an object, array, string, null, boolean value, integer or float More... | |
Typedefs | |
typedef struct SJson_S | SJson |
this is the abstract container structure for all json data This structure may be an object, array, string, null, boolean value, integer or float More... | |
Enumerations | |
enum | SJValueTypes { SJVT_NULL, SJVT_Object, SJVT_Array, SJVT_String } |
Functions | |
SJson * | sj_new () |
allocate a new empty json object More... | |
void | sj_free (SJson *sjs) |
frees a previously loaded json struct More... | |
SJson * | sj_string_to_value (SJString *string) |
make a jason value object out of a string More... | |
SJString * | sj_string_to_json_string (SJson *string) |
get the contents of the string back formatted and escaped for json More... | |
SJString * | sj_value_to_json_string (SJson *json) |
convert the json value into a json string More... | |
this is the abstract container structure for all json data This structure may be an object, array, string, null, boolean value, integer or float
enum SJValueTypes |
Enumerator | |
---|---|
SJVT_NULL | |
SJVT_Object | |
SJVT_Array | |
SJVT_String |
Definition at line 7 of file simple_json_value.h.
void sj_free | ( | SJson * | sjs | ) |
frees a previously loaded json struct
Definition at line 116 of file simple_json.c.
SJson* sj_new | ( | ) |
allocate a new empty json object
Definition at line 96 of file simple_json.c.
get the contents of the string back formatted and escaped for json
string | the json string to conver |
Definition at line 236 of file simple_json_string.c.
make a jason value object out of a string
string | the string to convert |
Definition at line 170 of file simple_json_string.c.
convert the json value into a json string
json | the value to convert |
Definition at line 156 of file simple_json.c.