yparse
v1.0.2
Published
JSON.parse string, array or object recursively
Readme
About
JSON.parse string, array or object recursively (only parse valid JSON, return original value if is not a valid json)
let parseAll = require('yparse')
let ob = '{"k":true}'
parseAll(ob) // {k:true}notes
single quotes
will also attempt to parse single quotes of an object or array in a string, by trying to convert to double quotes, else return back the original string
- will auto catch unquoted object keys
