Writes the given object as JSON to the specified file path synchronously.
The file path where the JSON should be written.
The object to be written as JSON.
Writes the given object as JSON to the specified file path synchronously.