Crates.io | hjson |
lib.rs | hjson |
version | 1.1.0 |
source | src |
created_at | 2016-07-17 09:57:31.352801 |
updated_at | 2024-09-25 13:36:23.411554 |
description | Hjson serialization file format |
homepage | |
repository | https://github.com/hjson/hjson-rust |
max_upload_size | |
id | 5692 |
size | 14,121 |
{
# specify rate in requests/second (because comments are helpful!)
rate: 1000
// prefer c-style comments?
/* feeling old fashioned? */
# did you notice that rate doesn't need quotes?
hey: look ma, no quotes for strings either!
# best of all
notice: []
anything: ?
# yes, commas are optional!
}
Install with cargo install hjson
Hjson, the Human JSON.
Usage:
hjson [options]
hjson [options] <input>
hjson (-h | --help)
hjson (-V | --version)
Options:
-h --help Show this screen.
-j Output as formatted JSON.
-c Output as JSON.
-V --version Show version.
Sample:
hjson test.json > test.hjson
to convert to Hjsonhjson -j test.hjson > test.json
to convert to JSON