Skip to content

Function: parseAsJson() ​

ts
function parseAsJson<T>(): Parser<T>;

Defined in: parser/parsers.ts:265

Reads JSON as the type the caller gives. Invalid JSON is not accepted.

Type Parameters ​

Type Parameter
T

Returns ​

Parser<T>

Released under the MIT License.