X-Git-Url: http://www.project-moonshot.org/gitweb/?p=jansson.git;a=blobdiff_plain;f=test%2Fbin%2Fjson_process.c;h=794e3075b9ad361d2e76ab26ebd8942148c8fd25;hp=e7be614bb57cccb66dcde11d779fac11d7a242d0;hb=19a606d7361e73ff2f5e0b240c2adb07b35e4273;hpb=3add1cf36183d4acefa11ae1c0acd6d92719ac02 diff --git a/test/bin/json_process.c b/test/bin/json_process.c index e7be614..794e307 100644 --- 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);