hjson

Crates.iohjson
lib.rshjson
version1.1.0
sourcesrc
created_at2016-07-17 09:57:31.352801
updated_at2024-09-25 13:36:23.411554
descriptionHjson serialization file format
homepage
repositoryhttps://github.com/hjson/hjson-rust
max_upload_size
id5692
size14,121
(trobro)

documentation

README

Hjson CLI

Build Status crate

Hjson Intro

{
  # 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
Commit count: 67

cargo fmt