<PackageReference Include="System.Text.Json" Version="6.0.0-preview.4.21253.7" />
API Differences between 6.0.0-preview.4.21253.7 and 4.7.0-preview1.19504.10
228 Additions
2 Removals
System.Text.Json
-
public struct JsonElement
-
public static class JsonSerializer
- public static TValue Deserialize<TValue>(string json, JsonSerializerOptions options = null)
- public static object Deserialize(string json, Type returnType, JsonSerializerOptions options = null)
- public static TValue Deserialize<TValue>(ReadOnlySpan<byte> utf8Json, JsonTypeInfo<TValue> jsonTypeInfo)
- public static object Deserialize(ReadOnlySpan<byte> utf8Json, Type returnType, JsonSerializerContext context)
- public static TValue Deserialize<TValue>(string json, JsonSerializerOptions options = null)
- public static TValue Deserialize<TValue>(ReadOnlySpan<char> json, JsonSerializerOptions options = null)
- public static object Deserialize(string json, Type returnType, JsonSerializerOptions options = null)
- public static object Deserialize(ReadOnlySpan<char> json, Type returnType, JsonSerializerOptions options = null)
- public static TValue Deserialize<TValue>(string json, JsonTypeInfo<TValue> jsonTypeInfo)
- public static TValue Deserialize<TValue>(ReadOnlySpan<char> json, JsonTypeInfo<TValue> jsonTypeInfo)
- public static object Deserialize(string json, Type returnType, JsonSerializerContext context)
- public static object Deserialize(ReadOnlySpan<char> json, Type returnType, JsonSerializerContext context)
- public static TValue Deserialize<TValue>(ref Utf8JsonReader reader, JsonTypeInfo<TValue> jsonTypeInfo)
- public static object Deserialize(ref Utf8JsonReader reader, Type returnType, JsonSerializerContext context)
- public static ValueTask<TValue> DeserializeAsync<TValue>(Stream utf8Json, JsonTypeInfo<TValue> jsonTypeInfo, CancellationToken cancellationToken = default)
- public static ValueTask<object> DeserializeAsync(Stream utf8Json, Type returnType, JsonSerializerContext context, CancellationToken cancellationToken = default)
- public static IAsyncEnumerable<TValue> DeserializeAsyncEnumerable<TValue>(Stream utf8Json, JsonSerializerOptions options = null, CancellationToken cancellationToken = default)
- public static string Serialize<TValue>(TValue value, JsonTypeInfo<TValue> jsonTypeInfo)
- public static string Serialize(object value, Type inputType, JsonSerializerContext context)
- public static void Serialize<TValue>(Utf8JsonWriter writer, TValue value, JsonTypeInfo<TValue> jsonTypeInfo)
- public static void Serialize(Utf8JsonWriter writer, object value, Type inputType, JsonSerializerContext context)
- public static Task SerializeAsync<TValue>(Stream utf8Json, TValue value, JsonTypeInfo<TValue> jsonTypeInfo, CancellationToken cancellationToken = default)
- public static Task SerializeAsync(Stream utf8Json, object value, Type inputType, JsonSerializerContext context, CancellationToken cancellationToken = default)
- public static byte[] SerializeToUtf8Bytes<TValue>(TValue value, JsonTypeInfo<TValue> jsonTypeInfo)
- public static byte[] SerializeToUtf8Bytes(object value, Type inputType, JsonSerializerContext context)
-
public enum JsonSerializerDefaults
-
public sealed class JsonSerializerOptions
System.Text.Json.Node
-
public sealed class JsonArray : JsonNode, IList<JsonNode>, ICollection<JsonNode>, IEnumerable<JsonNode>, IEnumerable
-
public abstract class JsonNode : IDynamicMetaObjectProvider
-
public struct JsonNodeOptions
-
public sealed class JsonObject : JsonNode, IDictionary<string, JsonNode>, ICollection<KeyValuePair<string, JsonNode>>, IEnumerable<KeyValuePair<string, JsonNode>>, IEnumerable
-
public abstract class JsonValue : JsonNode
System.Text.Json.Serialization
System.Text.Json.Serialization.Metadata
-
public static class JsonMetadataServices
- public static JsonConverter<bool> BooleanConverter { get; }
- public static JsonConverter<byte[]> ByteArrayConverter { get; }
- public static JsonConverter<byte> ByteConverter { get; }
- public static JsonConverter<char> CharConverter { get; }
- public static JsonConverter<DateTime> DateTimeConverter { get; }
- public static JsonConverter<DateTimeOffset> DateTimeOffsetConverter { get; }
- public static JsonConverter<decimal> DecimalConverter { get; }
- public static JsonConverter<double> DoubleConverter { get; }
- public static JsonConverter<Guid> GuidConverter { get; }
- public static JsonConverter<short> Int16Converter { get; }
- public static JsonConverter<int> Int32Converter { get; }
- public static JsonConverter<long> Int64Converter { get; }
- public static JsonConverter<object> ObjectConverter { get; }
- public static JsonConverter<sbyte> SByteConverter { get; }
- public static JsonConverter<float> SingleConverter { get; }
- public static JsonConverter<string> StringConverter { get; }
- public static JsonConverter<ushort> UInt16Converter { get; }
- public static JsonConverter<uint> UInt32Converter { get; }
- public static JsonConverter<ulong> UInt64Converter { get; }
- public static JsonConverter<Uri> UriConverter { get; }
- public static JsonConverter<Version> VersionConverter { get; }
- public static JsonTypeInfo<TElement[]> CreateArrayInfo<TElement>(JsonSerializerOptions options, JsonTypeInfo elementInfo, JsonNumberHandling numberHandling)
- public static JsonTypeInfo<TCollection> CreateDictionaryInfo<TCollection, TKey, TValue>(JsonSerializerOptions options, Func<TCollection> createObjectFunc, JsonTypeInfo keyInfo, JsonTypeInfo valueInfo, JsonNumberHandling numberHandling) where TCollection : Dictionary<TKey, TValue>
- public static JsonTypeInfo<TCollection> CreateListInfo<TCollection, TElement>(JsonSerializerOptions options, Func<TCollection> createObjectFunc, JsonTypeInfo elementInfo, JsonNumberHandling numberHandling) where TCollection : List<TElement>
- public static JsonTypeInfo<T> CreateObjectInfo<T>()
- public static JsonPropertyInfo CreatePropertyInfo<T>(JsonSerializerOptions options, bool isProperty, Type declaringType, JsonTypeInfo propertyTypeInfo, JsonConverter<T> converter, Func<object, T> getter, Action<object, T> setter, JsonIgnoreCondition ignoreCondition, JsonNumberHandling numberHandling, string propertyName, string jsonPropertyName)
- public static JsonTypeInfo<T> CreateValueInfo<T>(JsonSerializerOptions options, JsonConverter converter)
- public static JsonConverter<T> GetEnumConverter<T>(JsonSerializerOptions options) where T : struct, Enum
- public static JsonConverter<T?> GetNullableConverter<T>(JsonTypeInfo<T> underlyingTypeInfo) where T : struct
- public static void InitializeObjectInfo<T>(JsonTypeInfo<T> info, JsonSerializerOptions options, Func<T> createObjectFunc, Func<JsonSerializerContext, JsonPropertyInfo[]> propInitFunc, JsonNumberHandling numberHandling)
-
public abstract class JsonPropertyInfo
-
public class JsonTypeInfo
-
public abstract class JsonTypeInfo<T> : JsonTypeInfo