SerializationJsonSerializeObjectToFile Method

Serializes an object to a JSON string that is saved to the indicated file.

Definition

Namespace: Aliquo.Core
Assembly: Aliquo.Core (in Aliquo.Core.dll) Version: 5.0.9179.22651
C#
public static void JsonSerializeObjectToFile(
	Object value,
	string file,
	bool indentedFormat = false,
	bool microsoftDateFormat = false,
	bool nullValueHandling = true
)

Parameters

value  Object
Object to serialize.
file  String
Path of the file to be serialized.
indentedFormat  Boolean  (Optional)
Causes child objects to be indented.
microsoftDateFormat  Boolean  (Optional)
Dates are written in the Microsoft JSON format, e.g. "\/Date(1198908717056)\/.
nullValueHandling  Boolean  (Optional)
How null values on .NET objects are handled during serialization and how null values in JSON are handled during deserialization.

See Also