• Manual
  • API Documentation
  • Bayat.SaveSystem
  • SaveSystemJsonSerializer

    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 SaveSystemJsonSerializer

    The Save System JsonSerializer wrapper.

    Inheritance
    System.Object
    SaveSystemJsonSerializer
    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)
    System.Object.ToString()
    Namespace: Bayat.SaveSystem
    Assembly: Bayat.SaveSystem.Runtime.dll
    Syntax
    public class SaveSystemJsonSerializer

    Constructors

    | Improve this Doc View Source

    SaveSystemJsonSerializer(JsonSerializer)

    Initializes a new instance of SaveSystemJsonSerializer using the specified json serializer.

    Declaration
    public SaveSystemJsonSerializer(JsonSerializer jsonSerializer)
    Parameters
    Type Name Description
    JsonSerializer jsonSerializer

    The json serializer

    | Improve this Doc View Source

    SaveSystemJsonSerializer(JsonSerializerSettings)

    Initializes a new instance of SaveSystemJsonSerializer using the specified settings.

    Declaration
    public SaveSystemJsonSerializer(JsonSerializerSettings settings)
    Parameters
    Type Name Description
    JsonSerializerSettings settings

    The json serializer settings

    Fields

    | Improve this Doc View Source

    jsonSerializer

    Declaration
    protected JsonSerializer jsonSerializer
    Field Value
    Type Description
    JsonSerializer

    Properties

    | Improve this Doc View Source

    JsonSerializer

    The internal json serializer.

    Declaration
    public virtual JsonSerializer JsonSerializer { get; }
    Property Value
    Type Description
    JsonSerializer

    Methods

    | Improve this Doc View Source

    CreateDefault()

    Initializes a new instance of SaveSystemJsonSerializer with default configuration.

    Declaration
    public static SaveSystemJsonSerializer CreateDefault()
    Returns
    Type Description
    SaveSystemJsonSerializer
    | Improve this Doc View Source

    Deserialize(JsonReader, Type)

    Deserializes the object from the json reader.

    Declaration
    public object Deserialize(JsonReader jsonReader, Type objectType)
    Parameters
    Type Name Description
    JsonReader jsonReader

    The json reader

    System.Type objectType

    The object type

    Returns
    Type Description
    System.Object

    The deserialized object

    | Improve this Doc View Source

    Deserialize(Stream, Type)

    Deserializes the object from the stream.

    Declaration
    public object Deserialize(Stream stream, Type objectType)
    Parameters
    Type Name Description
    System.IO.Stream stream

    The stream

    System.Type objectType

    The object type

    Returns
    Type Description
    System.Object

    The deserialized object

    | Improve this Doc View Source

    Deserialize(TextReader, Type)

    Deserializes the object from the text reader.

    Declaration
    public object Deserialize(TextReader textReader, Type objectType)
    Parameters
    Type Name Description
    System.IO.TextReader textReader

    The text reader

    System.Type objectType

    The object type

    Returns
    Type Description
    System.Object

    The deserialized object

    | Improve this Doc View Source

    Deserialize(String, Type)

    Deserializes the object from json string.

    Declaration
    public object Deserialize(string json, Type objectType)
    Parameters
    Type Name Description
    System.String json

    The json string

    System.Type objectType

    The object type

    Returns
    Type Description
    System.Object

    The deserialized object

    | Improve this Doc View Source

    DeserializeInto(JsonReader, Object)

    Deserializes the data into the object from the json reader.

    Declaration
    public object DeserializeInto(JsonReader jsonReader, object target)
    Parameters
    Type Name Description
    JsonReader jsonReader

    The json reader

    System.Object target

    The target object to deserialize the data into

    Returns
    Type Description
    System.Object

    The populated target object

    | Improve this Doc View Source

    DeserializeInto(Stream, Object)

    Deserializes the data into the object from the json reader.

    Declaration
    public object DeserializeInto(Stream stream, object target)
    Parameters
    Type Name Description
    System.IO.Stream stream

    The stream

    System.Object target

    The target object to deserialize the data into

    Returns
    Type Description
    System.Object

    The populated target object

    | Improve this Doc View Source

    DeserializeInto(TextReader, Object)

    Deserializes the data into the object from the json reader.

    Declaration
    public object DeserializeInto(TextReader textReader, object target)
    Parameters
    Type Name Description
    System.IO.TextReader textReader

    The text reader

    System.Object target

    The target object to deserialize the data into

    Returns
    Type Description
    System.Object

    The populated target object

    | Improve this Doc View Source

    DeserializeInto(String, Object)

    Deserializes the data into the object from the json reader.

    Declaration
    public object DeserializeInto(string json, object target)
    Parameters
    Type Name Description
    System.String json

    The json string

    System.Object target

    The target object to deserialize the data into

    Returns
    Type Description
    System.Object

    The populated target object

    | Improve this Doc View Source

    Serialize(JsonWriter, Object)

    Serializes the value to the json writer.

    Declaration
    public void Serialize(JsonWriter jsonWriter, object value)
    Parameters
    Type Name Description
    JsonWriter jsonWriter

    The json writer

    System.Object value

    The value

    | Improve this Doc View Source

    Serialize(Stream, Object)

    Serializes the value to the stream.

    Declaration
    public void Serialize(Stream stream, object value)
    Parameters
    Type Name Description
    System.IO.Stream stream

    The stream

    System.Object value

    The value

    | Improve this Doc View Source

    Serialize(TextWriter, Object)

    Serializes the value to the text writer.

    Declaration
    public void Serialize(TextWriter textWriter, object value)
    Parameters
    Type Name Description
    System.IO.TextWriter textWriter

    The text writer

    System.Object value

    The value

    | Improve this Doc View Source

    Serialize(Object)

    Serializes the value to json string.

    Declaration
    public string Serialize(object value)
    Parameters
    Type Name Description
    System.Object value

    The value

    Returns
    Type Description
    System.String

    The serialized json

    • Improve this Doc
    • View Source
    • 0 Comments
    In This Article
    • Constructors
      • SaveSystemJsonSerializer(JsonSerializer)
      • SaveSystemJsonSerializer(JsonSerializerSettings)
    • Fields
      • jsonSerializer
    • Properties
      • JsonSerializer
    • Methods
      • CreateDefault()
      • Deserialize(JsonReader, Type)
      • Deserialize(Stream, Type)
      • Deserialize(TextReader, Type)
      • Deserialize(String, Type)
      • DeserializeInto(JsonReader, Object)
      • DeserializeInto(Stream, Object)
      • DeserializeInto(TextReader, Object)
      • DeserializeInto(String, Object)
      • Serialize(JsonWriter, Object)
      • Serialize(Stream, Object)
      • Serialize(TextWriter, Object)
      • Serialize(Object)