JsonSerializationUtils.SerializeToFile

Serializes an object instance to a JSON file.

public static bool SerializeToFile(object value, string fileName, 
			bool throwExceptions, bool formatJsonOutput, 
			bool camelCase)

Parameters

value
the value to serialize

fileName
Full path to the file to write out with JSON.

throwExceptions
Determines whether exceptions are thrown or false is returned

formatJsonOutput
if true pretty-formats the JSON with line breaks

camelCase