Skip to content

colinbdclark/generous-json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Generous JSON

Generous JSON is a JSON parser that supports comments and unquoted strings. You know, for people.

It is a combination of:

Example of a Generous JSON document

{
    unquotedStrings: "are ok",

    // Single line comments are too.
    "cat": true,

    /*
     * And multi-line comments
     */
    riesling: "schloss vollrads"
}

API

GenerousJSON.parse(<String> jsonString)

Generously parses a JSON document.

Returns the parsed object. Throws an error if the JSON string is invalid.

About

A JSON parser that supports comments and unquoted keys

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published