7 releases (2 stable)
1.1.0 | Sep 25, 2024 |
---|---|
1.0.0 | Jul 29, 2024 |
0.8.2 | Oct 17, 2018 |
0.8.1 | Aug 18, 2016 |
0.1.1 | Jul 17, 2016 |
#491 in Encoding
120KB
3K
SLoC
Hjson CLI
{
# 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
Install with cargo install hjson
Usage
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:
- run
hjson test.json > test.hjson
to convert to Hjson - run
hjson -j test.hjson > test.json
to convert to JSON
Dependencies
~4–6MB
~111K SLoC