Crates.io | canon |
lib.rs | canon |
version | 0.1.1 |
source | src |
created_at | 2019-06-20 23:41:41.863568 |
updated_at | 2019-06-20 23:47:58.548757 |
description | Naively puts JSON into a canonical form (sorts object keys) |
homepage | https://github.com/jtremback/canon |
repository | https://github.com/jtremback/canon |
max_upload_size | |
id | 142484 |
size | 2,516 |
This is a command line utility to put JSON into a canonical form.
WARNING: Currently this just deserializes and researializes the JSON with serde_json, which sorts the keys in objects. It should probably be using something more intentionally canonical.
Usage:
$ echo '{ "zoology": "bar", "ambergris": "foo" }' | canon
{"ambergris":"foo","zoology":"bar"}
Installation:
You're going to need to have cargo
and the other rust stuff installed. Then do:
cargo install canon