JsonSetting 属性 |
Senparc.Weixin SDK 官方教程《微信开发深度解析》已出版,支持中国开源事业,请【购买正版】!
《微信公众号+小程序》视频课程已经上线,【点击这里】学习!
NeuChar(纽插)已经上线,为开发者提供一站式跨平台管理枢纽,并可将应用入驻到 NeuChar 应用商店!新功能正在不断增加中,快来使用吧! https://www.neuchar.com
在线动态微信接口 Swagger WebApi 文档: https://weixin.senparc.com:8039
JsonSetting 类型公开以下成员。
名称 | 说明 | |
---|---|---|
![]() | Binder |
已过时。
Gets or sets the SerializationBinder used by the serializer when resolving type names.
(继承自 JsonSerializerSettings。) |
![]() | CheckAdditionalContent |
Gets a value indicating whether there will be a check for additional content after deserializing an object.
The default value is false.
(继承自 JsonSerializerSettings。) |
![]() | ConstructorHandling |
Gets or sets how constructors are used during deserialization.
The default value is Default.
(继承自 JsonSerializerSettings。) |
![]() | Context |
Gets or sets the StreamingContext used by the serializer when invoking serialization callback methods.
(继承自 JsonSerializerSettings。) |
![]() | ContractResolver |
Gets or sets the contract resolver used by the serializer when
serializing .NET objects to JSON and vice versa.
(继承自 JsonSerializerSettings。) |
![]() | Converters |
Gets or sets a JsonConverter collection that will be used during serialization.
(继承自 JsonSerializerSettings。) |
![]() | Culture |
Gets or sets the culture used when reading JSON.
The default value is InvariantCulture.
(继承自 JsonSerializerSettings。) |
![]() | DateFormatHandling |
Gets or sets how dates are written to JSON text.
The default value is IsoDateFormat.
(继承自 JsonSerializerSettings。) |
![]() | DateFormatString |
Gets or sets how DateTime and DateTimeOffset values are formatted when writing JSON text,
and the expected date format when reading JSON text.
The default value is "yyyy'-'MM'-'dd'T'HH':'mm':'ss.FFFFFFFK".
(继承自 JsonSerializerSettings。) |
![]() | DateParseHandling |
Gets or sets how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON.
The default value is DateTime.
(继承自 JsonSerializerSettings。) |
![]() | DateTimeZoneHandling |
Gets or sets how DateTime time zones are handled during serialization and deserialization.
The default value is RoundtripKind.
(继承自 JsonSerializerSettings。) |
![]() | DefaultValueHandling |
Gets or sets how default values are handled during serialization and deserialization.
The default value is Include.
(继承自 JsonSerializerSettings。) |
![]() | EqualityComparer |
Gets or sets the equality comparer used by the serializer when comparing references.
(继承自 JsonSerializerSettings。) |
![]() | Error |
Gets or sets the error handler called during serialization and deserialization.
(继承自 JsonSerializerSettings。) |
![]() | FloatFormatHandling |
Gets or sets how special floating point numbers, e.g. NaN,
PositiveInfinity and NegativeInfinity,
are written as JSON.
The default value is String.
(继承自 JsonSerializerSettings。) |
![]() | FloatParseHandling |
Gets or sets how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text.
The default value is Double.
(继承自 JsonSerializerSettings。) |
![]() | Formatting |
Indicates how JSON text output is formatted.
The default value is None.
(继承自 JsonSerializerSettings。) |
![]() | IgnoreNulls |
是否忽略当前类型以及具有IJsonIgnoreNull接口,且为Null值的属性。如果为true,符合此条件的属性将不会出现在Json字符串中
|
![]() | MaxDepth |
Gets or sets the maximum depth allowed when reading JSON. Reading past this depth will throw a JsonReaderException.
A null value means there is no maximum.
The default value is null.
(继承自 JsonSerializerSettings。) |
![]() | MetadataPropertyHandling |
Gets or sets how metadata properties are used during deserialization.
The default value is Default.
(继承自 JsonSerializerSettings。) |
![]() | MissingMemberHandling |
Gets or sets how missing members (e.g. JSON contains a property that isn't a member on the object) are handled during deserialization.
The default value is Ignore.
(继承自 JsonSerializerSettings。) |
![]() | NullValueHandling |
Gets or sets how null values are handled during serialization and deserialization.
The default value is Include.
(继承自 JsonSerializerSettings。) |
![]() | ObjectCreationHandling |
Gets or sets how objects are created during deserialization.
The default value is Auto.
(继承自 JsonSerializerSettings。) |
![]() | PreserveReferencesHandling |
Gets or sets how object references are preserved by the serializer.
The default value is None.
(继承自 JsonSerializerSettings。) |
![]() | PropertiesToIgnoreNull |
需要特殊忽略null值的属性名称
|
![]() | ReferenceLoopHandling |
Gets or sets how reference loops (e.g. a class referencing itself) are handled.
The default value is Error.
(继承自 JsonSerializerSettings。) |
![]() | ReferenceResolver |
已过时。
Gets or sets the IReferenceResolver used by the serializer when resolving references.
(继承自 JsonSerializerSettings。) |
![]() | ReferenceResolverProvider |
Gets or sets a function that creates the IReferenceResolver used by the serializer when resolving references.
(继承自 JsonSerializerSettings。) |
![]() | SerializationBinder |
Gets or sets the ISerializationBinder used by the serializer when resolving type names.
(继承自 JsonSerializerSettings。) |
![]() | StringEscapeHandling |
Gets or sets how strings are escaped when writing JSON text.
The default value is Default.
(继承自 JsonSerializerSettings。) |
![]() | TraceWriter |
Gets or sets the ITraceWriter used by the serializer when writing trace messages.
(继承自 JsonSerializerSettings。) |
![]() | TypeNameAssemblyFormat |
已过时。
Gets or sets how a type name assembly is written and resolved by the serializer.
The default value is Simple.
(继承自 JsonSerializerSettings。) |
![]() | TypeNameAssemblyFormatHandling |
Gets or sets how a type name assembly is written and resolved by the serializer.
The default value is Simple.
(继承自 JsonSerializerSettings。) |
![]() | TypeNameHandling |
Gets or sets how type name writing and reading is handled by the serializer.
The default value is None.
(继承自 JsonSerializerSettings。) |
![]() | TypesToIgnoreNull |
指定类型(Class,非Interface)下的为null属性不生成到Json中
|