Possible parsed JSON value.
Following the JSON specification, the result of a JSON.parse call can be one of a given set of types. This type is a union of all of those types.
JSON.parse
const json: JSONValue = JSON.parse('{"foo": "bar"}'); Copy
const json: JSONValue = JSON.parse('{"foo": "bar"}');
JSON
Possible parsed JSON value.
Remarks
Following the JSON specification, the result of a
JSON.parse
call can be one of a given set of types. This type is a union of all of those types.Example
See
JSON