Skip to content

Commit

Permalink
Merge pull request #232 from kelchy/master
Browse files Browse the repository at this point in the history
jansson: prevent from shuffling key order in json
  • Loading branch information
miconda committed Jul 6, 2015
2 parents e5b7d9f + 140d0c6 commit 9866f62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/jansson/jansson_utils.c
Expand Up @@ -33,7 +33,7 @@ int jansson_to_val(pv_value_t* val, char** freeme, json_t* v) {
val->flags = 0;

if(json_is_object(v) || json_is_array(v)) {
const char* value = json_dumps(v, JSON_COMPACT);
const char* value = json_dumps(v, JSON_COMPACT|JSON_PRESERVE_ORDER);
*freeme = (char*)value;
val->rs.s = (char*)value;
val->rs.len = strlen(value);
Expand Down

0 comments on commit 9866f62

Please sign in to comment.