Show / Hide Table of Contents

Class AbpNewtonsoftJsonSerializer

Inheritance
object
AbpNewtonsoftJsonSerializer
Implements
IJsonSerializer
ITransientDependency
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.Json.Newtonsoft
Assembly: Volo.Abp.Json.Newtonsoft.dll
Syntax
[Dependency(ReplaceServices = true)]
public class AbpNewtonsoftJsonSerializer : IJsonSerializer, ITransientDependency

Constructors

AbpNewtonsoftJsonSerializer(IRootServiceProvider, IOptions<AbpNewtonsoftJsonSerializerOptions>)

Declaration
public AbpNewtonsoftJsonSerializer(IRootServiceProvider rootServiceProvider, IOptions<AbpNewtonsoftJsonSerializerOptions> options)
Parameters
Type Name Description
IRootServiceProvider rootServiceProvider
IOptions<AbpNewtonsoftJsonSerializerOptions> options

Properties

Options

Declaration
protected IOptions<AbpNewtonsoftJsonSerializerOptions> Options { get; }
Property Value
Type Description
IOptions<AbpNewtonsoftJsonSerializerOptions>

RootServiceProvider

Declaration
protected IRootServiceProvider RootServiceProvider { get; }
Property Value
Type Description
IRootServiceProvider

Methods

CreateJsonSerializerOptions(bool, bool)

Declaration
protected virtual JsonSerializerSettings CreateJsonSerializerOptions(bool camelCase = true, bool indented = false)
Parameters
Type Name Description
bool camelCase
bool indented
Returns
Type Description
JsonSerializerSettings

Deserialize(Type, string, bool)

Declaration
public object Deserialize(Type type, string jsonString, bool camelCase = true)
Parameters
Type Name Description
Type type
string jsonString
bool camelCase
Returns
Type Description
object

Deserialize<T>(string, bool)

Declaration
public T Deserialize<T>(string jsonString, bool camelCase = true)
Parameters
Type Name Description
string jsonString
bool camelCase
Returns
Type Description
T
Type Parameters
Name Description
T

Serialize(object, bool, bool)

Declaration
public string Serialize(object obj, bool camelCase = true, bool indented = false)
Parameters
Type Name Description
object obj
bool camelCase
bool indented
Returns
Type Description
string

Implements

IJsonSerializer
ITransientDependency

Extension Methods

AbpObjectExtensions.As<T>(object)
AbpObjectExtensions.To<T>(object)
LockExtensions.Locking(object, Action)
LockExtensions.Locking<TResult>(object, Func<TResult>)
AbpObjectExtensions.If<T>(T, bool, Action<T>)
AbpObjectExtensions.If<T>(T, bool, Func<T, T>)
AbpObjectExtensions.IsIn<T>(T, IEnumerable<T>)
AbpObjectExtensions.IsIn<T>(T, params T[])
AbpQueryableExtensions.OrderByIf<T, TQueryable>(TQueryable, bool, string)
AbpQueryableExtensions.PageBy<T, TQueryable>(TQueryable, int, int)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, bool>>)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, int, bool>>)
AbpOpenIddictQueryableExtensions.SkipIf<T, TQueryable>(TQueryable, bool, int?)
AbpOpenIddictQueryableExtensions.TakeIf<T, TQueryable>(TQueryable, bool, int?)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
In this article
Back to top Powered by ABP.IO Platform