Skip to content

Signatures

writeJsonFile(path: string, data: T, options: JsonWriteOptions): void

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

Parameters

  • path: string - A path to a file.
  • data: T - data which should be serialized to JSON and written to the file
  • options: JsonWriteOptions - JSON serialize options