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_save_to_stream (FILE *stream, const JST_Element *root, unsigned indent) |
Save the JSON tree to a stream, pretty-printed. More... | |
JST_Error | JST_save_to_file (const char *path, const JST_Element *root, unsigned indent) |
Save the JSON tree to a file, pretty-printed. More... | |
JST_Error | JST_save_to_stream_compact (FILE *stream, const JST_Element *root) |
Save the JSON tree to a stream, as a single line of text, without whitespaces. More... | |
JST_Error | JST_save_to_file_compact (const char *path, const JST_Element *root) |
Save the JSON tree to a file, as a single line of text, without whitespaces. More... | |
JST_Error JST_save_to_file | ( | const char * | filepath, |
const JST_Element * | root, | ||
unsigned | indent | ||
) |
Save the JSON tree to a file, pretty-printed.
filepath | the path of the target file |
root | the root of the tree to save |
indent | the amout of space to pretty print the tree. |
Definition at line 56 of file JST_save.c.
JST_Error JST_save_to_file_compact | ( | const char * | filepath, |
const JST_Element * | root | ||
) |
Save the JSON tree to a file, as a single line of text, without whitespaces.
filepath | the path of the target file |
root | the root of the tree to save |
Definition at line 120 of file JST_save.c.
JST_Error JST_save_to_stream | ( | FILE * | stream, |
const JST_Element * | root, | ||
unsigned | indent | ||
) |
Save the JSON tree to a stream, pretty-printed.
stream | the target stream. |
root | the root of the tree to save. |
indent | the amout of space to pretty print the tree. |
Definition at line 47 of file JST_save.c.
JST_Error JST_save_to_stream_compact | ( | FILE * | stream, |
const JST_Element * | root | ||
) |
Save the JSON tree to a stream, as a single line of text, without whitespaces.
filepath | the path of the target file |
root | the root of the tree to save |
Definition at line 112 of file JST_save.c.