Jasony gem - read generation y / next generation JSON versions with comments, unquoted keys, multi-line strings, trailing commas, and more

Hello,

   I've put together a new JSON readers gem called jasony [1]. The
first next generation JSON parser / reader included is `HANSON.parse`
for the JSON for Humans (HanSON) format by Tim Jansen et al.

   Using HanSON you can use comments, unquoted keys, multi-line
strings, single-quoted strings, trailing commas, and more. Example:

{

  listName: "Sesame Street Monsters", // note that listName needs no quotes
  content: [
    {
      name: "Cookie Monster",
      /* Note the template quotes and unescaped regular quotes in the
next string */
      background: `Cookie Monster used to be a
monster that ate everything, especially cookies.
These days he is forced to eat "healthy" food.`
    }, {
      // You can single-quote strings too:
      name: 'Herry Monster',
      background: `Herry Monster is a furry blue monster with a purple nose.
He's mostly retired today.`
    }, // don't worry, the trailing comma will be ignored
   ]
}


Use `HANSON.convert` to convert HanSON text to ye old' JSON text:

``` json
\{
  "listName": "Sesame Street Monsters",
  "content": \[
    \{ "name": "Cookie Monster",
       "background": "Cookie Monster used to be a\\n \.\.\. to eat
\\"healthy\\" food\."
    \},
    \{ "name": "Herry Monster",
      "background": "Herry Monster is a furry blue monster with a
purple nose\.\\n \.\.\. today\."
    \}
  \]

\}

   Note: \`HANSON\.parse\` is the same as \`JSON\.parse\(
HANSON\.convert\(text\)\)\`, that is, HanSON works like a "pre\-processor"
for JSON\.

   If you have a favorite "human" JSON format / flavor, let us know\.
Anything missing in HanSON? Do you know any other "human" JSON reader
gems for ruby?

  Questions, comments welcome\. Cheers\.

PS: Trivia: Why jasony?  The jason gem was already take and jasony is
another "human" name like jason\.

\[1\] https://github.com/datatxt/jasony

Hello,

   Hello, I’ve updated the JSON readers gem called jasony [1]. The
next next generation JSON parser / reader included is SON.parse for
the Simple Object Notation (SON) format by Aleksander Gurin et al.
Using SON you can use Ruby (Shell)-like #-comments, optional commas,
and more. Example:

    {
      # Personal information

      "name": "Alexander Grothendieck"
      "fields": "mathematics"
      "main_topics": [
        "Etale cohomology"
        "Motives"
        "Topos theory"
        "Schemes"
      ]
      "numbers": [1 2 3 4]
      "mixed": [1.1 -2 true false null]
    }

Use `SON.convert` to convert SON text to ye old' JSON text:

    {
      "name": "Alexander Grothendieck",
      "fields": "mathematics",
      "main_topics": [
        "Etale cohomology",
        "Motives",
        "Topos theory",
        "Schemes"
      ],
      "numbers": [1, 2, 3, 4],
      "mixed": [1.1, -2, true, false, null]
    }

Use `SON.parse` instead of `JSON.parse` to parse text to ruby hash /
array / etc.:

    {
      "name" => "Alexander Grothendieck",
      "fields" => "mathematics",
      "main_topics" =>
        ["Etale cohomology", "Motives", "Topos theory", "Schemes"],
      "numbers" => [1, 2, 3, 4],
      "mixed" => [1.1, -2, true, false, nil]
    }

Note: `SON.parse` is the same as `JSON.parse( SON.convert(text))`,
that is, SON works like a "pre-processor" for JSON.

Cheers.

[1] https://github.com/datatxt/jasony#son