Skip to main content

Class NewtonsoftJsonSerializer

Serializes objects as JSON using Newtonsoft.Json.

Assembly: Log73.Extensions.NewtonsoftJson.dll
View Source
Declaration
public class NewtonsoftJsonSerializer : IObjectSerializer

Fields

Settings

The Newtonsoft.Json.JsonSerializerSettings to use when serializing.

View Source
Declaration
public JsonSerializerSettings Settings

Methods

Serialize(Object)

Serialize the object as JSON using Log73.Extensions.NewtonsoftJson.NewtonsoftJsonSerializer.Settings.

View Source
Declaration
public string Serialize(object obj)
Returns

System.String: The serialized object.

Parameters
TypeNameDescription
System.ObjectobjThe object.

Implements

Extension Methods