Type alias JSONValue

JSONValue: Exclude<Primitive, bigint | symbol | undefined> | ReadonlyArray<JSONValue> | {
    [property: string]: JSONValue;
}

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

const json: JSONValue = JSON.parse('{"foo": "bar"}');

See

JSON