|
JST: JSON tools
1.0.0
JSON tools dynamic library for reading, manipulating and writing JSON tree
|

Go to the source code of this file.
Functions | |
| JST_Error | JST_serialize (JST_Element *root, char **dest, unsigned indent) |
| Serialize the JSON tree to a string, pretty-printed. More... | |
| JST_Error | JST_serialize_compact (JST_Element *root, char **dest) |
| Serialize the JSON tree to a string as a single line of text, without whitespaces. More... | |
| JST_Error JST_serialize | ( | JST_Element * | root, |
| char ** | dest, | ||
| unsigned | indent | ||
| ) |
Serialize the JSON tree to a string, pretty-printed.
| filepath | the path of the target file |
| root | the root of the tree to save |
| dest | a pointer to the char buffer allocated by this function, must be freed by the user |
| indent | the amout of space to pretty print the tree. When indent is negative, it means the JSON tree is printed with all the nodes on a single line. |
Definition at line 112 of file JST_serialize.c.
| JST_Error JST_serialize_compact | ( | JST_Element * | root, |
| char ** | dest | ||
| ) |
Serialize the JSON tree to a string as a single line of text, without whitespaces.
| filepath | the path of the target file |
| root | the root of the tree to save |
| dest | a pointer to the char buffer allocated by this function, must be freed by the user negative, it means the JSON tree is printed with all the nodes on a single line. |
Definition at line 227 of file JST_serialize.c.
1.8.13