• Manual
  • API Documentation
  • Bayat.Json.Serialization
  • JsonProperty

    Show / Hide Table of Contents
    • Bayat
      • UnityThread
    • Bayat.Core
      • AddReferenceWindow
      • AddReferenceWindow.Dependency
      • AssetReferenceResolver
      • AssetReferenceResolverEditor
      • BayatEditorStyles
      • CoreAssetPostProcessor
      • EditorApplicationUtility
      • MaterialPropertiesResolver
      • MaterialPropertiesResolverEditor
      • ReferenceCheckerWindow
      • ReferenceResolverMode
      • RuntimeMaterialProperties
      • RuntimeMaterialProperty
      • RuntimeMaterialPropertyType
      • SceneReferenceResolver
      • SceneReferenceResolverEditor
      • UnityEditorInternalException
    • Bayat.Core.EditorWindows
      • AssetReferenceManagerWindow
      • AssetReferenceManagerWindow.Styles
      • DatabaseMigrationWindow
      • DatabaseMigrationWindow.SceneMigrationStatus
      • DatabaseMigrationWindow.Styles
      • EditorWindowExtensions
      • EditorWindowUtility
      • EditorWindowWrapper
      • SceneReferenceManagerWindow
      • SceneReferenceManagerWindow.Styles
      • WindowClose
      • WrappedEditorWindow
    • Bayat.Core.Profiling
      • ProfiledSegment
      • ProfiledSegmentCollection
      • ProfilingScope
      • ProfilingUtility
    • Bayat.Core.Reflection
      • AssemblyExtensions
      • Codebase
      • RuntimeCodebase
      • TypeExtensions
      • TypeUtility
    • Bayat.Core.Text
      • StringExtensions
      • StringUtility
    • Bayat.Core.Utilities
      • ExceptionExtensions
      • GuidToReferenceDictionary
      • SerializableDictionary<TKey, TVal>
    • Bayat.Json
      • ConstructorHandling
      • CreateObjectConverterWindow
      • CreateObjectConverterWindow.Styles
      • DateFormatHandling
      • DateParseHandling
      • DateTimeZoneHandling
      • DefaultValueHandling
      • FloatFormatHandling
      • FloatParseHandling
      • Formatting
      • GameObjectSerializationHandler
      • GameObjectSerializationManagerTreeView
      • GameObjectSerializationManagerTreeView.Styles
      • GameObjectSerializationManagerWindow
      • GameObjectSerializationManagerWindow.Styles
      • IArrayPool<T>
      • IJsonLineInfo
      • JsonArrayAttribute
      • JsonConstructorAttribute
      • JsonContainerAttribute
      • JsonContainerType
      • JsonConvert
      • JsonConverter
      • JsonConverterAttribute
      • JsonConverterCollection
      • JsonDefaultSettingsWindow
      • JsonDefaultSettingsWindow.Styles
      • JsonDictionaryAttribute
      • JsonException
      • JsonExtensionDataAttribute
      • JsonIgnoreAttribute
      • JsonObjectAttribute
      • JsonPosition
      • JsonPropertyAttribute
      • JsonReader
      • JsonReader.State
      • JsonReaderException
      • JsonRequiredAttribute
      • JsonSerializationException
      • JsonSerializer
      • JsonSerializerSettings
      • JsonSerializerSettingsPreset
      • JsonTextReader
      • JsonTextWriter
      • JsonToken
      • JsonWriter
      • JsonWriter.State
      • JsonWriterException
      • MemberSerialization
      • MetadataPropertyHandling
      • MissingMemberHandling
      • NullValueHandling
      • ObjectCreationHandling
      • PreserveReferencesHandling
      • ReadType
      • ReferenceLoopHandling
      • Required
      • StringEscapeHandling
      • TypeNameHandling
      • WriteState
    • Bayat.Json.Bson
      • BsonArray
      • BsonBinary
      • BsonBinaryType
      • BsonBinaryWriter
      • BsonObject
      • BsonObjectId
      • BsonProperty
      • BsonReader
      • BsonRegex
      • BsonString
      • BsonToken
      • BsonType
      • BsonValue
      • BsonWriter
    • Bayat.Json.Converters
      • AnimatorConverter
      • AudioClipConverter
      • BinaryConverter
      • BoundsConverter
      • BsonObjectIdConverter
      • ColliderConverter
      • ColorConverter
      • CustomCreationConverter<T>
      • DateTimeConverterBase
      • DiscriminatedUnionConverter
      • EntityKeyMemberConverter
      • ExpandoObjectConverter
      • GameObjectConverter
      • HashSetConverter
      • IsoDateTimeConverter
      • JavaScriptDateTimeConverter
      • KeyValuePairConverter
      • MaterialConverter
      • MaterialConverter.JsonSerializedMaterialProperty
      • Matrix4x4Converter
      • MeshConverter
      • MeshConverter.SerializedIndices
      • MeshFilterConverter
      • ObjectJsonConverter
      • QuaternionConverter
      • RectConverter
      • RectTransformConverter
      • RegexConverter
      • RendererConverter
      • ResolutionConverter
      • ShaderConverter
      • SpriteConverter
      • StringEnumConverter
      • Texture2DConverter
      • TransformConverter
      • UnityBehaviourConverter
      • UnityComponentConverter
      • UnityMonoBehaviourConverter
      • UnityObjectConverter
      • UriConverter
      • VectorConverter
      • VersionConverter
      • XmlNodeConverter
    • Bayat.Json.Linq
      • CommentHandling
      • Extensions
      • IJEnumerable<T>
      • JArray
      • JConstructor
      • JContainer
      • JEnumerable<T>
      • JObject
      • JProperty
      • JPropertyDescriptor
      • JPropertyKeyedCollection
      • JRaw
      • JsonLoadSettings
      • JsonMergeSettings
      • JToken
      • JTokenEqualityComparer
      • JTokenReader
      • JTokenType
      • JTokenWriter
      • JValue
      • LineInfoHandling
      • MergeArrayHandling
      • MergeNullValueHandling
    • Bayat.Json.Linq.JsonPath
      • ArrayIndexFilter
      • ArrayMultipleIndexFilter
      • ArraySliceFilter
      • BooleanQueryExpression
      • CompositeExpression
      • FieldFilter
      • FieldMultipleFilter
      • JPath
      • PathFilter
      • QueryExpression
      • QueryFilter
      • QueryOperator
      • ScanFilter
    • Bayat.Json.Serialization
      • CachedAttributeGetter<T>
      • CamelCasePropertyNamesContractResolver
      • DefaultContractResolver
      • DefaultContractResolver.EnumerableDictionaryWrapper<TEnumeratorKey, TEnumeratorValue>
      • DefaultContractResolverState
      • DefaultReferenceResolver
      • DefaultSerializationBinder
      • DefaultSerializationBinder.TypeNameKey
      • DiagnosticsTraceWriter
      • ErrorContext
      • ErrorEventArgs
      • ExpressionValueProvider
      • ExtensionDataGetter
      • ExtensionDataSetter
      • IAttributeProvider
      • IContractResolver
      • IReferenceResolver
      • ITraceWriter
      • IValueProvider
      • JsonArrayContract
      • JsonContainerContract
      • JsonContract
      • JsonContractType
      • JsonDictionaryContract
      • JsonDynamicContract
      • JsonFormatterConverter
      • JsonISerializableContract
      • JsonLinqContract
      • JsonObjectContract
      • JsonPrimitiveContract
      • JsonProperty
      • JsonPropertyCollection
      • JsonSerializerInternalBase
      • JsonSerializerProxy
      • JsonSerializerReader
      • JsonSerializerReader.CreatorPropertyContext
      • JsonSerializerReader.PropertyPresence
      • JsonSerializerWriter
      • JsonStringContract
      • JsonTypeReflector
      • MemoryTraceWriter
      • ObjectConstructor<T>
      • OnErrorAttribute
      • ReflectionAttributeProvider
      • ReflectionValueProvider
      • ResolverContractKey
      • SerializationCallback
      • SerializationErrorCallback
      • TraceJsonReader
      • TraceJsonWriter
    • Bayat.Json.Shims
      • PreserveAttribute
    • Bayat.Json.Utilities
      • Base64Encoder
      • BidirectionalDictionary<TFirst, TSecond>
      • BufferUtils
      • CollectionUtils
      • CollectionWrapper<T>
      • ConvertUtils
      • ConvertUtils.ConvertResult
      • ConvertUtils.TypeConvertKey
      • Creator<T>
      • DateTimeParser
      • DateTimeUtils
      • DictionaryWrapper<TKey, TValue>
      • DynamicProxy<T>
      • DynamicProxyMetaObject<T>
      • DynamicUtils
      • DynamicUtils.BinderWrapper
      • EnumUtils
      • EnumValue<T>
      • ExpressionReflectionDelegateFactory
      • FSharpFunction
      • FSharpUtils
      • ImmutableCollectionsUtils
      • ImmutableCollectionsUtils.ImmutableCollectionTypeInfo
      • IWrappedCollection
      • IWrappedDictionary
      • JavaScriptUtils
      • JsonTokenUtils
      • LateBoundReflectionDelegateFactory
      • MathUtils
      • MethodCall<T, TResult>
      • MiscellaneousUtils
      • NoThrowExpressionVisitor
      • NoThrowGetBinderMember
      • NoThrowSetBinderMember
      • ParseResult
      • ParserTimeZone
      • PrimitiveTypeCode
      • PropertyNameTable
      • ReflectionDelegateFactory
      • ReflectionMember
      • ReflectionObject
      • ReflectionUtils
      • StringBuffer
      • StringReference
      • StringReferenceExtensions
      • StringUtils
      • ThreadSafeStore<TKey, TValue>
      • TypeInformation
      • ValidationUtils
    • Bayat.SaveSystem
      • AutoSave
      • AutoSaveManager
      • AutoSaveManager.LoadEvent
      • AutoSaveManager.SaveEvent
      • AutoSaveManagerWindow
      • AutoSaveManagerWindow.Styles
      • LoadEventArgs
      • LoadIntoEventArgs
      • SaveEventArgs
      • SaveSystemAPI
      • SaveSystemDefaultSettingsWindow
      • SaveSystemDefaultSettingsWindow.Styles
      • SaveSystemEditorResources
      • SaveSystemJsonSerializer
      • SaveSystemManager
      • SaveSystemSettings
      • SaveSystemSettingsPreset
      • WelcomeWindow
      • WelcomeWindow.Styles
    • Bayat.SaveSystem.Security
      • ISaveSystemEncryption
      • SaveSystemCryptoStream
      • SaveSystemSymmetricCryptoStream
      • SaveSystemSymmetricEncryption
    • Bayat.SaveSystem.Storage
      • BuiltInConnectionFactory
      • ConnectionStringFactory
      • FileStorageStream
      • IConnectionFactory
      • IStorage
      • IStorageStream
      • LocalDiskStorage
      • PlayerPrefsStorage
      • PlayerPrefsStorageStream
      • StorageBackup
      • StorageBase
      • StorageClearOperationResult
      • StorageConnectionString
      • StorageCopyOperationResult
      • StorageDeleteOperationResult
      • StorageFactory
      • StorageFullException
      • StorageInvalidIdentifierException
      • StorageItemNotFoundException
      • StorageListOptions
      • StorageMetaData
      • StorageMoveOperationResult
      • StorageOperationResult
      • StorageStream

    Class JsonProperty

    Maps a JSON property to a .NET member or constructor parameter.

    Inheritance
    System.Object
    JsonProperty
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: Bayat.Json.Serialization
    Assembly: Bayat.Json.Runtime.dll
    Syntax
    public class JsonProperty

    Fields

    | Improve this Doc View Source

    _hasExplicitDefaultValue

    Declaration
    protected bool _hasExplicitDefaultValue
    Field Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    _required

    Declaration
    protected Required? _required
    Field Value
    Type Description
    System.Nullable<Required>
    | Improve this Doc View Source

    _skipPropertyNameEscape

    Declaration
    protected bool _skipPropertyNameEscape
    Field Value
    Type Description
    System.Boolean

    Properties

    | Improve this Doc View Source

    AttributeProvider

    Gets or sets the IAttributeProvider for this property.

    Declaration
    public IAttributeProvider AttributeProvider { get; set; }
    Property Value
    Type Description
    IAttributeProvider

    The IAttributeProvider for this property.

    | Improve this Doc View Source

    Converter

    Gets or sets the JsonConverter for the property. If set this converter takes presidence over the contract converter for the property type.

    Declaration
    public JsonConverter Converter { get; set; }
    Property Value
    Type Description
    JsonConverter

    The converter.

    | Improve this Doc View Source

    DeclaringType

    Gets or sets the type that declared this property.

    Declaration
    public Type DeclaringType { get; set; }
    Property Value
    Type Description
    System.Type

    The type that declared this property.

    | Improve this Doc View Source

    DefaultValue

    Gets the default value.

    Declaration
    public object DefaultValue { get; set; }
    Property Value
    Type Description
    System.Object

    The default value.

    | Improve this Doc View Source

    DefaultValueHandling

    Gets or sets the property default value handling.

    Declaration
    public DefaultValueHandling? DefaultValueHandling { get; set; }
    Property Value
    Type Description
    System.Nullable<DefaultValueHandling>

    The default value handling.

    | Improve this Doc View Source

    GetIsSpecified

    Gets or sets a predicate used to determine whether the property should be serialized.

    Declaration
    public Predicate<object> GetIsSpecified { get; set; }
    Property Value
    Type Description
    System.Predicate<System.Object>

    A predicate used to determine whether the property should be serialized.

    | Improve this Doc View Source

    HasMemberAttribute

    Gets or sets a value indicating whether this JsonProperty has a member attribute.

    Declaration
    public bool HasMemberAttribute { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if has a member attribute; otherwise, false.

    | Improve this Doc View Source

    Ignored

    Gets or sets a value indicating whether this JsonProperty is ignored.

    Declaration
    public bool Ignored { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if ignored; otherwise, false.

    | Improve this Doc View Source

    IsReference

    Gets or sets a value indicating whether this property preserves object references.

    Declaration
    public bool? IsReference { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Boolean>

    true if this instance is reference; otherwise, false.

    | Improve this Doc View Source

    ItemConverter

    Gets or sets the converter used when serializing the property's collection items.

    Declaration
    public JsonConverter ItemConverter { get; set; }
    Property Value
    Type Description
    JsonConverter

    The collection's items converter.

    | Improve this Doc View Source

    ItemIsReference

    Gets or sets whether this property's collection items are serialized as a reference.

    Declaration
    public bool? ItemIsReference { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Boolean>

    Whether this property's collection items are serialized as a reference.

    | Improve this Doc View Source

    ItemReferenceLoopHandling

    Gets or sets the the reference loop handling used when serializing the property's collection items.

    Declaration
    public ReferenceLoopHandling? ItemReferenceLoopHandling { get; set; }
    Property Value
    Type Description
    System.Nullable<ReferenceLoopHandling>

    The collection's items reference loop handling.

    | Improve this Doc View Source

    ItemTypeNameHandling

    Gets or sets the the type name handling used when serializing the property's collection items.

    Declaration
    public TypeNameHandling? ItemTypeNameHandling { get; set; }
    Property Value
    Type Description
    System.Nullable<TypeNameHandling>

    The collection's items type name handling.

    | Improve this Doc View Source

    MemberConverter

    Gets or sets the member converter.

    Declaration
    public JsonConverter MemberConverter { get; set; }
    Property Value
    Type Description
    JsonConverter

    The member converter.

    | Improve this Doc View Source

    NullValueHandling

    Gets or sets the property null value handling.

    Declaration
    public NullValueHandling? NullValueHandling { get; set; }
    Property Value
    Type Description
    System.Nullable<NullValueHandling>

    The null value handling.

    | Improve this Doc View Source

    ObjectCreationHandling

    Gets or sets the property object creation handling.

    Declaration
    public ObjectCreationHandling? ObjectCreationHandling { get; set; }
    Property Value
    Type Description
    System.Nullable<ObjectCreationHandling>

    The object creation handling.

    | Improve this Doc View Source

    Order

    Gets or sets the order of serialization of a member.

    Declaration
    public int? Order { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Int32>

    The numeric order of serialization.

    | Improve this Doc View Source

    PropertyContract

    Declaration
    public JsonContract PropertyContract { get; set; }
    Property Value
    Type Description
    JsonContract
    | Improve this Doc View Source

    PropertyName

    Gets or sets the name of the property.

    Declaration
    public string PropertyName { get; set; }
    Property Value
    Type Description
    System.String

    The name of the property.

    | Improve this Doc View Source

    PropertyType

    Gets or sets the type of the property.

    Declaration
    public Type PropertyType { get; set; }
    Property Value
    Type Description
    System.Type

    The type of the property.

    | Improve this Doc View Source

    Readable

    Gets or sets a value indicating whether this JsonProperty is readable.

    Declaration
    public bool Readable { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if readable; otherwise, false.

    | Improve this Doc View Source

    ReferenceLoopHandling

    Gets or sets the property reference loop handling.

    Declaration
    public ReferenceLoopHandling? ReferenceLoopHandling { get; set; }
    Property Value
    Type Description
    System.Nullable<ReferenceLoopHandling>

    The reference loop handling.

    | Improve this Doc View Source

    Required

    Gets or sets a value indicating whether this JsonProperty is required.

    Declaration
    public Required Required { get; set; }
    Property Value
    Type Description
    Required

    A value indicating whether this JsonProperty is required.

    | Improve this Doc View Source

    SetIsSpecified

    Gets or sets an action used to set whether the property has been deserialized.

    Declaration
    public Action<object, object> SetIsSpecified { get; set; }
    Property Value
    Type Description
    System.Action<System.Object, System.Object>

    An action used to set whether the property has been deserialized.

    | Improve this Doc View Source

    ShouldDeserialize

    Gets or sets a predicate used to determine whether the property should be deserialized.

    Declaration
    public Predicate<object> ShouldDeserialize { get; set; }
    Property Value
    Type Description
    System.Predicate<System.Object>

    A predicate used to determine whether the property should be deserialized.

    | Improve this Doc View Source

    ShouldSerialize

    Gets or sets a predicate used to determine whether the property should be serialize.

    Declaration
    public Predicate<object> ShouldSerialize { get; set; }
    Property Value
    Type Description
    System.Predicate<System.Object>

    A predicate used to determine whether the property should be serialize.

    | Improve this Doc View Source

    TypeNameHandling

    Gets or sets or sets the type name handling.

    Declaration
    public TypeNameHandling? TypeNameHandling { get; set; }
    Property Value
    Type Description
    System.Nullable<TypeNameHandling>

    The type name handling.

    | Improve this Doc View Source

    UnderlyingName

    Gets or sets the name of the underlying member or parameter.

    Declaration
    public string UnderlyingName { get; set; }
    Property Value
    Type Description
    System.String

    The name of the underlying member or parameter.

    | Improve this Doc View Source

    ValueProvider

    Gets the IValueProvider that will get and set the JsonProperty during serialization.

    Declaration
    public IValueProvider ValueProvider { get; set; }
    Property Value
    Type Description
    IValueProvider

    The IValueProvider that will get and set the JsonProperty during serialization.

    | Improve this Doc View Source

    Writable

    Gets or sets a value indicating whether this JsonProperty is writable.

    Declaration
    public bool Writable { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if writable; otherwise, false.

    Methods

    | Improve this Doc View Source

    GetResolvedDefaultValue()

    Declaration
    public object GetResolvedDefaultValue()
    Returns
    Type Description
    System.Object
    | Improve this Doc View Source

    ToString()

    Returns a System.String that represents this instance.

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String

    A System.String that represents this instance.

    Overrides
    System.Object.ToString()
    | Improve this Doc View Source

    WritePropertyName(JsonWriter)

    Declaration
    public void WritePropertyName(JsonWriter writer)
    Parameters
    Type Name Description
    JsonWriter writer
    • Improve this Doc
    • View Source
    • 0 Comments
    In This Article
    • Fields
      • _hasExplicitDefaultValue
      • _required
      • _skipPropertyNameEscape
    • Properties
      • AttributeProvider
      • Converter
      • DeclaringType
      • DefaultValue
      • DefaultValueHandling
      • GetIsSpecified
      • HasMemberAttribute
      • Ignored
      • IsReference
      • ItemConverter
      • ItemIsReference
      • ItemReferenceLoopHandling
      • ItemTypeNameHandling
      • MemberConverter
      • NullValueHandling
      • ObjectCreationHandling
      • Order
      • PropertyContract
      • PropertyName
      • PropertyType
      • Readable
      • ReferenceLoopHandling
      • Required
      • SetIsSpecified
      • ShouldDeserialize
      • ShouldSerialize
      • TypeNameHandling
      • UnderlyingName
      • ValueProvider
      • Writable
    • Methods
      • GetResolvedDefaultValue()
      • ToString()
      • WritePropertyName(JsonWriter)