JsonSerializationUtils.SerializeToFile

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, 2019 • Updated: 06/23/19
Comment or report problem with topic