JsonSerializationUtils.SerializeToFile

Serializes an object instance to a JSON file.

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

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

camelCase


See also:

Class JsonSerializationUtils

© West Wind Technologies, 1996-2024 • Updated: 06/29/24
Comment or report problem with topic