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

850 B

Function: readJson

readJson<T>(tree, path, options?): T

Reads a json file, removes all comments and parses JSON.

Type parameters

Name Type
T extends object = any

Parameters

Name Type Description
tree Tree file system tree
path string file path
options? JsonParseOptions Optional JSON Parse Options

Returns

T