Skip to content

writeJsonFile<T>(path, data, options?): void

Serializes the given data to JSON and writes it to a file.

NameType
Textends object = object
NameTypeDescription
pathstringA path to a file.
dataTdata which should be serialized to JSON and written to the file
options?JsonWriteOptionsJSON serialize options

void