6 releases (3 breaking)

new 0.96.0 Jul 24, 2024
0.95.0 Jun 25, 2024
0.94.2 Jun 3, 2024
0.94.1 May 30, 2024
0.93.0 Apr 30, 2024

#805 in Algorithms

Download history 1072/week @ 2024-04-29 594/week @ 2024-05-06 456/week @ 2024-05-13 478/week @ 2024-05-20 1447/week @ 2024-05-27 1287/week @ 2024-06-03 513/week @ 2024-06-10 399/week @ 2024-06-17 1057/week @ 2024-06-24 532/week @ 2024-07-01 464/week @ 2024-07-08 430/week @ 2024-07-15

2,522 downloads per month
Used in 7 crates (via nu-command)

MIT and maybe CC-PDDC

2MB
42K SLoC

Support for the NUON format.

The NUON format is a superset of JSON designed to fit the feel of Nushell. Some of its extra features are

  • trailing commas are allowed
  • commas are optional in lists
  • quotes are not required around keys or any bare string that do not contain spaces or special characters
  • comments are allowed, though not preserved when using from_nuon

Example

below is some data in the JSON format

{
    "name": "Some One",
    "birth": "1970-01-01",
    "stats": [
      2544729499973429198,
      687051042647753531,
      6702443901704799912
    ]
}

and an equivalent piece of data written in NUON

{
    name: "Some One",       # the name of the person
    birth: "1970-01-01",    # their date of birth
    stats: [                # some dummy "stats" about them
      2544729499973429198,
      687051042647753531,
      6702443901704799912, # note the trailing comma here...
    ], # and here
} # wait, are these comments in a JSON-like document?!?!

Dependencies

~22–52MB
~1M SLoC