DataFactoryBaseSerializeJson Method

Serializes the Json data to a disk file.

Definition

Namespace: Common.Core.Classes
Assembly: Common.Core (in Common.Core.dll) Version: 2.1.5
C#
protected static bool SerializeJson(
	Object obj,
	string path,
	string file,
	JsonSerializerOptions options
)

Parameters

obj  Object
Object containing the data.
path  String
Location for the Json data file.
file  String
Name of the file. If not supplied the default name is used.
options  JsonSerializerOptions
Serialization options.

Return Value

Boolean
if the data was serialized, otherwise is returned.

See Also