jsonfmt: Add canonical option
Not as bad as I had expected it to be; managed to keep the implementation a little bit simpler and cleaner than JSON::XS.
This commit is contained in:
parent
163a60b4ba
commit
1a0fb03205
5 changed files with 115 additions and 23 deletions
|
|
@ -49,6 +49,11 @@ The following C<%options> are supported:
|
|||
|
||||
=over
|
||||
|
||||
=item canonical
|
||||
|
||||
When set to a true value, write hash keys in deterministic (sorted) order. This
|
||||
option currently has no effect on tied hashes.
|
||||
|
||||
=item utf8
|
||||
|
||||
When set to a true value, returns a UTF-8 encoded byte string instead of a Perl
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue