This feature is experimental. Please share your experiences so we know what to keep or change.
Parses a string of relaxed JSON into a JavaScript value.
let value = up.util.parseRelaxedJSON("{ foo: 'one', bar: 'two', }")
console.log(value) // logs an object { foo: 'one', bar: 'two' }
When the passed text is not in Relaxed JSON format, a SyntaxError
is thrown.
The text to parse.
The parsed JSON value.