1
0
mirror of https://github.com/stedolan/jq.git synced 2024-05-11 05:55:39 +00:00

Support for printing object keys in sorted order.

No command-line option to enable this yet. See #79.
This commit is contained in:
Stephen Dolan
2013-05-29 11:43:23 +01:00
parent dcf1ac0d1f
commit 73446a9cce
2 changed files with 30 additions and 2 deletions

2
jv.h
View File

@@ -117,7 +117,7 @@ jv jv_object_iter_value(jv, int);
int jv_get_refcnt(jv);
enum { JV_PRINT_PRETTY = 1, JV_PRINT_ASCII = 2, JV_PRINT_COLOUR = 4 };
enum { JV_PRINT_PRETTY = 1, JV_PRINT_ASCII = 2, JV_PRINT_COLOUR = 4, JV_PRINT_SORTED = 8 };
void jv_dump(jv, int flags);
jv jv_dump_string(jv, int flags);