/hjson

Hjson, the Human JSON

Primary LanguageHTMLMIT LicenseMIT

NPM Maven Central PyPI nuget Packagist crate Go Pkg

Hjson, the Human JSON

Hjson

A configuration file format for humans. Relaxed syntax, fewer mistakes, more comments.

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!

  # Obviously you can always use standard JSON syntax as well:
  favNumbers: [ 1, 2, 3, 6, 42 ]
}

For details see hjson.org.