SerializationJsonSerializeObjectToFile Method
Serializes an object to a JSON string that is saved to the indicated file.
Namespace: Aliquo.CoreAssembly: Aliquo.Core (in Aliquo.Core.dll) Version: 5.0.9179.22651
public static void JsonSerializeObjectToFile(
Object value,
string file,
bool indentedFormat = false,
bool microsoftDateFormat = false,
bool nullValueHandling = true
)
Public Shared Sub JsonSerializeObjectToFile (
value As Object,
file As String,
Optional indentedFormat As Boolean = false,
Optional microsoftDateFormat As Boolean = false,
Optional nullValueHandling As Boolean = 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.