json-literal-parse
superset of JSON.parse()
adding regex, null, and octal literals
example
var parse = ;var xs = ;consoledirxs;
methods
var parse =
var obj = parse(str)
Parse the input string str
, returning the parsed representation obj
.
parse()
is just like JSON.parse()
except that the input may have additional
"literal"
types not in the JSON spec, which are:
- regex
- null
- octal
install
With npm do:
npm install json-literal-parse
license
MIT