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

    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 JsonObjectContract

    Contract details for a System.Type used by the JsonSerializer.

    Inheritance
    System.Object
    JsonContract
    JsonContainerContract
    JsonObjectContract
    Inherited Members
    JsonContainerContract.ItemContract
    JsonContainerContract.FinalItemContract
    JsonContainerContract.ItemConverter
    JsonContainerContract.ItemIsReference
    JsonContainerContract.ItemReferenceLoopHandling
    JsonContainerContract.ItemTypeNameHandling
    JsonContract.IsNullable
    JsonContract.IsConvertable
    JsonContract.IsEnum
    JsonContract.NonNullableUnderlyingType
    JsonContract.InternalReadType
    JsonContract.ContractType
    JsonContract.IsReadOnlyOrFixedSize
    JsonContract.IsSealed
    JsonContract.IsInstantiable
    JsonContract.UnderlyingType
    JsonContract.CreatedType
    JsonContract.IsReference
    JsonContract.Converter
    JsonContract.InternalConverter
    JsonContract.OnDeserializedCallbacks
    JsonContract.OnDeserializingCallbacks
    JsonContract.OnSerializedCallbacks
    JsonContract.OnSerializingCallbacks
    JsonContract.OnErrorCallbacks
    JsonContract.OnDeserialized
    JsonContract.OnDeserializing
    JsonContract.OnSerialized
    JsonContract.OnSerializing
    JsonContract.OnError
    JsonContract.DefaultCreator
    JsonContract.DefaultCreatorNonPublic
    JsonContract.InvokeOnSerializing(Object, StreamingContext)
    JsonContract.InvokeOnSerialized(Object, StreamingContext)
    JsonContract.InvokeOnDeserializing(Object, StreamingContext)
    JsonContract.InvokeOnDeserialized(Object, StreamingContext)
    JsonContract.InvokeOnError(Object, StreamingContext, ErrorContext)
    JsonContract.CreateSerializationCallback(MethodInfo)
    JsonContract.CreateSerializationErrorCallback(MethodInfo)
    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)
    System.Object.ToString()
    Namespace: Bayat.Json.Serialization
    Assembly: Bayat.Json.Runtime.dll
    Syntax
    public class JsonObjectContract : JsonContainerContract

    Constructors

    | Improve this Doc View Source

    JsonObjectContract(Type)

    Initializes a new instance of the JsonObjectContract class.

    Declaration
    public JsonObjectContract(Type underlyingType)
    Parameters
    Type Name Description
    System.Type underlyingType

    The underlying type for the contract.

    Fields

    | Improve this Doc View Source

    ExtensionDataIsJToken

    Declaration
    public bool ExtensionDataIsJToken
    Field Value
    Type Description
    System.Boolean

    Properties

    | Improve this Doc View Source

    ConstructorParameters

    Gets the constructor parameters required for any non-default constructor

    Declaration
    [Obsolete("ConstructorParameters is obsolete. Use CreatorParameters instead.")]
    public JsonPropertyCollection ConstructorParameters { get; }
    Property Value
    Type Description
    JsonPropertyCollection
    | Improve this Doc View Source

    CreatorParameters

    Gets a collection of JsonProperty instances that define the parameters used with OverrideCreator.

    Declaration
    public JsonPropertyCollection CreatorParameters { get; }
    Property Value
    Type Description
    JsonPropertyCollection
    | Improve this Doc View Source

    ExtensionDataGetter

    Gets or sets the extension data getter.

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

    ExtensionDataSetter

    Gets or sets the extension data setter.

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

    ExtensionDataValueType

    Gets or sets the extension data value type.

    Declaration
    public Type ExtensionDataValueType { get; set; }
    Property Value
    Type Description
    System.Type
    | Improve this Doc View Source

    HasRequiredOrDefaultValueProperties

    Declaration
    public bool HasRequiredOrDefaultValueProperties { get; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    ItemRequired

    Gets or sets a value that indicates whether the object's properties are required.

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

    A value indicating whether the object's properties are required.

    | Improve this Doc View Source

    MemberSerialization

    Gets or sets the object member serialization.

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

    The member object serialization.

    | Improve this Doc View Source

    OverrideConstructor

    Gets or sets the override constructor used to create the object. This is set when a constructor is marked up using the JsonConstructor attribute.

    Declaration
    [Obsolete("OverrideConstructor is obsolete. Use OverrideCreator instead.")]
    public ConstructorInfo OverrideConstructor { get; set; }
    Property Value
    Type Description
    System.Reflection.ConstructorInfo

    The override constructor.

    | Improve this Doc View Source

    OverrideCreator

    Gets or sets the function used to create the object. When set this function will override DefaultCreator. This function is called with a collection of arguments which are defined by the CreatorParameters collection.

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

    The function used to create the object.

    | Improve this Doc View Source

    ParameterizedCreator

    Declaration
    public ObjectConstructor<object> ParameterizedCreator { get; }
    Property Value
    Type Description
    ObjectConstructor<System.Object>
    | Improve this Doc View Source

    ParametrizedConstructor

    Gets or sets the parametrized constructor used to create the object.

    Declaration
    [Obsolete("ParametrizedConstructor is obsolete. Use OverrideCreator instead.")]
    public ConstructorInfo ParametrizedConstructor { get; set; }
    Property Value
    Type Description
    System.Reflection.ConstructorInfo

    The parametrized constructor.

    | Improve this Doc View Source

    Properties

    Gets the object's properties.

    Declaration
    public JsonPropertyCollection Properties { get; }
    Property Value
    Type Description
    JsonPropertyCollection

    The object's properties.

    Methods

    | Improve this Doc View Source

    GetUninitializedObject()

    Declaration
    public object GetUninitializedObject()
    Returns
    Type Description
    System.Object
    • Improve this Doc
    • View Source
    • 0 Comments
    In This Article
    • Constructors
      • JsonObjectContract(Type)
    • Fields
      • ExtensionDataIsJToken
    • Properties
      • ConstructorParameters
      • CreatorParameters
      • ExtensionDataGetter
      • ExtensionDataSetter
      • ExtensionDataValueType
      • HasRequiredOrDefaultValueProperties
      • ItemRequired
      • MemberSerialization
      • OverrideConstructor
      • OverrideCreator
      • ParameterizedCreator
      • ParametrizedConstructor
      • Properties
    • Methods
      • GetUninitializedObject()