canon

Crates.iocanon
lib.rscanon
version0.1.1
sourcesrc
created_at2019-06-20 23:41:41.863568
updated_at2019-06-20 23:47:58.548757
descriptionNaively puts JSON into a canonical form (sorts object keys)
homepagehttps://github.com/jtremback/canon
repositoryhttps://github.com/jtremback/canon
max_upload_size
id142484
size2,516
Jehan (jtremback)

documentation

README

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
Commit count: 4

cargo fmt