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

1.0 KiB

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 File system tree
path string Path of JSON file in the Tree
value T Serializable value to write
options? JsonSerializeOptions Optional JSON Serialize Options

Returns

void