AOJLS
0.1
CJSONparsing/generatinglibrary
|
Serialization preferences. More...
#include <aojls.h>
Data Fields | |
bool | pretty |
size_t | offset_per_level |
const char * | eol |
const char * | number_formatter |
writer_function_t | writer |
void * | writer_data |
bool | success |
Serialization preferences.
Contains all available preferences that can be used by serialization. Also holds result of serialization where they were used.
const char* aojls_serialization_prefs::eol |
Custom end of line character sequence, default is '
'
const char* aojls_serialization_prefs::number_formatter |
Custom number formatter for JSON numbers. Default is "%f"
size_t aojls_serialization_prefs::offset_per_level |
If pretty output is required, this denounces number of spaces per level, default is 4
bool aojls_serialization_prefs::pretty |
Whether pretty output is required (newlines, indentation), default is false
bool aojls_serialization_prefs::success |
true if serialization was successful, false if not
writer_function_t aojls_serialization_prefs::writer |
Custom writer function. If not provided, serializer will output to string
void* aojls_serialization_prefs::writer_data |
Writer state. Only applicable when custom writer is used, otherwise should be NULL.