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

590 B

Function: readJsonFile

readJsonFile<T>(path, options?): T

Reads a JSON file and returns the object the JSON content represents.

Type parameters

Name Type
T extends object = any

Parameters

Name Type Description
path string A path to a file.
options? JsonReadOptions JSON parse options

Returns

T

Object the JSON content of the file represents