projects
/
jansson.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Implement JSON_SORT_KEYS encoding flag
[jansson.git]
/
test
/
bin
/
json_process.c
diff --git
a/test/bin/json_process.c
b/test/bin/json_process.c
index
e7be614
..
794e307
100644
(file)
--- a/
test/bin/json_process.c
+++ b/
test/bin/json_process.c
@@
-53,6
+53,9
@@
int main(int argc, char *argv[])
if(getenv_int("JSON_ENSURE_ASCII"))
flags |= JSON_ENSURE_ASCII;
+ if(getenv_int("JSON_SORT_KEYS"))
+ flags |= JSON_SORT_KEYS;
+
json = json_loadf(stdin, &error);
if(!json) {
fprintf(stderr, "%d\n%s\n", error.line, error.text);