nx/docs/generated/devkit/parseJson.md
2023-12-13 16:49:46 +01:00

846 B

Function: parseJson

parseJson<T>(input, options?): T

Parses the given JSON string and returns the object the JSON content represents. By default javascript-style comments and trailing commas are allowed.

Type parameters

Name Type
T extends object = any

Parameters

Name Type Description
input string JSON content as string
options? JsonParseOptions JSON parse options

Returns

T

Object the JSON content represents