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

25 lines
1.0 KiB
Markdown

# Function: writeJson
**writeJson**\<`T`\>(`tree`, `path`, `value`, `options?`): `void`
Writes a JSON value to the file system tree
#### Type parameters
| Name | Type |
| :--- | :-------------------------- |
| `T` | extends `object` = `object` |
#### Parameters
| Name | Type | Description |
| :--------- | :-------------------------------------------------------------------- | :------------------------------ |
| `tree` | [`Tree`](../../devkit/documents/Tree) | File system tree |
| `path` | `string` | Path of JSON file in the Tree |
| `value` | `T` | Serializable value to write |
| `options?` | [`JsonSerializeOptions`](../../devkit/documents/JsonSerializeOptions) | Optional JSON Serialize Options |
#### Returns
`void`