Serializes an object instance to a JSON file.
public static bool SerializeToFile(object value, string fileName, bool throwExceptions, bool formatJsonOutput)
Return Value
true or false
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
See also:
Class JsonSerializationUtils© West Wind Technologies, 1996-2016 • Updated: 12/12/15
Comment or report problem with topic