Function writeJsonSync

  • Writes the given object as JSON to the specified file path synchronously.

    Parameters

    • path: string

      The file path where the JSON should be written.

    • object: any

      The object to be written as JSON.

    Returns void