You can see below the API reference of this module.
safeRJson A convenient JSON file reader.
If you want to use the syncronous version, do not pass the callback function.
- String
path
: The path to the JSON file. - Object
def
: The default value in case the file doesn't exist. - Function
cb
: The callback function.