12 releases (7 breaking)

0.100.0 Nov 13, 2024
0.98.0 Sep 18, 2024
0.96.1 Jul 29, 2024

#341 in Parser implementations

Download history 1289/week @ 2024-08-21 823/week @ 2024-08-28 667/week @ 2024-09-04 618/week @ 2024-09-11 1345/week @ 2024-09-18 710/week @ 2024-09-25 632/week @ 2024-10-02 695/week @ 2024-10-09 1620/week @ 2024-10-16 800/week @ 2024-10-23 923/week @ 2024-10-30 690/week @ 2024-11-06 1324/week @ 2024-11-13 630/week @ 2024-11-20 738/week @ 2024-11-27 649/week @ 2024-12-04

3,434 downloads per month
Used in 13 crates (2 directly)

MIT and maybe CC-PDDC

2MB
45K 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–55MB
~1M SLoC