Serialize Method
Definition
- Namespace
- Codebelt.Extensions.Newtonsoft.Json.Formatters
- Assemblies
- Codebelt.Extensions.Newtonsoft.Json.dll
Serialize(object, Type)
Serializes the specified source to an object of Stream.
public override Stream Serialize(object source, Type objectType)
Parameters
sourceobjectThe object to serialize to JSON format.
objectTypeTypeThe type of the object to serialize.
Returns
- Stream
A string of the serialized
source.