A valid JSON string.
Optional
reviver: (this: any, key: string, value: any) => anyA function that transforms the results. This function is called for each member of the object.
Optional
options: {The options for parsing the JSON string.
Optional
bigint?: booleanA value that indicates whether to parse bigints (ex. 57126n).
Optional
class?: falseA value that indicates whether to parse classes (ex. class).
Warning: This option is currently ignored as it is non-functional.
Optional
function?: falseA value that indicates whether to parse functions (ex. function).
Warning: This option is currently ignored as it is non-functional.
Optional
get?: falseA value that indicates whether to parse getter functions (ex. get).
Warning: This option is currently ignored as it is non-functional.
Optional
Infinity?: booleanA value that indicates whether to parse Infinity (ex. Infinity).
Optional
NaN?: booleanA value that indicates whether to parse NaN (ex. NaN).
Optional
NegativeInfinity?: booleanA value that indicates whether to parse -Infinity (ex. -Infinity).
Optional
set?: falseA value that indicates whether to parse setter functions (ex. set).
Warning: This option is currently ignored as it is non-functional.
Optional
undefined?: booleanA value that indicates whether to parse undefined (ex. undefined).
A JavaScript value, usually an object or array, that represents the JSONB that was parsed from the specified string.
Converts a JavaScript Object Notation B (JSONB) string into an object.