X-Git-Url: http://www.project-moonshot.org/gitweb/?p=jansson.git;a=blobdiff_plain;f=src%2Fjansson.h;h=59e3eb5b7c082bb7e42a3222e0564af996de175e;hp=d59fe10d3bb94be45c6ce69416e9076c5a524240;hb=6637b976edd508cc9413ce954fe4275eab8c2c69;hpb=50031440a3b7ab2623e9468bd20e837250250cd9 diff --git a/src/jansson.h b/src/jansson.h index d59fe10..59e3eb5 100644 --- a/src/jansson.h +++ b/src/jansson.h @@ -123,9 +123,9 @@ int json_integer_value(const json_t *integer); double json_real_value(const json_t *real); double json_number_value(const json_t *json); -int json_string_set(const json_t *string, const char *value); -int json_integer_set(const json_t *integer, int value); -int json_real_set(const json_t *real, double value); +int json_string_set(json_t *string, const char *value); +int json_integer_set(json_t *integer, int value); +int json_real_set(json_t *real, double value); /* loading, printing */ @@ -144,6 +144,7 @@ json_t *json_load_file(const char *path, json_error_t *error); #define JSON_INDENT(n) (n & 0xFF) #define JSON_COMPACT 0x100 #define JSON_ENSURE_ASCII 0x200 +#define JSON_SORT_KEYS 0x400 char *json_dumps(const json_t *json, unsigned long flags); int json_dumpf(const json_t *json, FILE *output, unsigned long flags);