13#ifndef __JSON_DUMPER_H__
14#define __JSON_DUMPER_H__
16#include "ws_symbol_export.h"
56#define JSON_DUMPER_MAX_DEPTH 1100
60#define JSON_DUMPER_FLAGS_PRETTY_PRINT (1 << 0)
61#define JSON_DUMPER_DOT_TO_UNDERSCORE (1 << 1)
62#define JSON_DUMPER_FLAGS_NO_DEBUG (1 << 17)
65 unsigned current_depth;
75json_dumper_set_member_name(
json_dumper *dumper,
const char *name);
87json_dumper_value_string(
json_dumper *dumper,
const char *value);
90json_dumper_value_double(
json_dumper *dumper,
double value);
114json_dumper_write_base64(
json_dumper *dumper, const
unsigned char *data,
size_t len);
WS_DLL_PUBLIC void WS_DLL_PUBLIC void json_dumper_value_va_list(json_dumper *dumper, const char *format, va_list ap)
Definition json_dumper.c:610
#define JSON_DUMPER_MAX_DEPTH
Definition json_dumper.h:56
WS_DLL_PUBLIC bool json_dumper_finish(json_dumper *dumper)
Definition json_dumper.c:637
WS_DLL_PUBLIC void json_dumper_value_anyf(json_dumper *dumper, const char *format,...) G_GNUC_PRINTF(2
Definition json_dumper.h:57
FILE * output_file
Definition json_dumper.h:58
GString * output_string
Definition json_dumper.h:59