nx/docs/generated/devkit/readJsonFile.md

25 lines
589 B
Markdown

# 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