The path to the file to update.
The function to update the file. Takes the current source string as a parameter and should return a string.
The default string to use if the file cannot be read.
Optional
read?: IJFReadOptionsOptional
write?: IJsonOutputOptionsGenerated using TypeDoc
Updates a JSON file based on a provided update function. The update function takes the file's parsed source string as a parameter and should return an object. If the file does not exist or cannot be read, the defaultJson will be used instead.