Class AbpNewtonsoftJsonSerializer
Inheritance
AbpNewtonsoftJsonSerializer
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
Properties
Options
Declaration
protected IOptions<AbpNewtonsoftJsonSerializerOptions> Options { get; }
Property Value
RootServiceProvider
Declaration
protected IRootServiceProvider RootServiceProvider { get; }
Property Value
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
Returns
Deserialize<T>(string, bool)
Declaration
public T Deserialize<T>(string jsonString, bool camelCase = true)
Parameters
Type |
Name |
Description |
string |
jsonString |
|
bool |
camelCase |
|
Returns
Type Parameters
Serialize(object, bool, bool)
Declaration
public string Serialize(object obj, bool camelCase = true, bool indented = false)
Parameters
Returns
Implements
Extension Methods