<PackageReference Include="System.Text.Json" Version="7.0.3" />
API Differences between 7.0.3 and 4.7.0
474 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>(this JsonDocument document, JsonSerializerOptions options = null)
- public static object Deserialize(this JsonDocument document, Type returnType, JsonSerializerOptions options = null)
- public static TValue Deserialize<TValue>(this JsonDocument document, JsonTypeInfo<TValue> jsonTypeInfo)
- public static object Deserialize(this JsonDocument document, Type returnType, JsonSerializerContext context)
- public static TValue Deserialize<TValue>(this JsonElement element, JsonSerializerOptions options = null)
- public static object Deserialize(this JsonElement element, Type returnType, JsonSerializerOptions options = null)
- public static TValue Deserialize<TValue>(this JsonElement element, JsonTypeInfo<TValue> jsonTypeInfo)
- public static object Deserialize(this JsonElement element, Type returnType, JsonSerializerContext context)
- public static TValue Deserialize<TValue>(this JsonNode node, JsonSerializerOptions options = null)
- public static object Deserialize(this JsonNode node, Type returnType, JsonSerializerOptions options = null)
- public static TValue Deserialize<TValue>(this JsonNode node, JsonTypeInfo<TValue> jsonTypeInfo)
- public static object Deserialize(this JsonNode node, Type returnType, JsonSerializerContext context)
- 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>(Stream utf8Json, JsonSerializerOptions options = null)
- public static object Deserialize(Stream utf8Json, Type returnType, JsonSerializerOptions options = null)
- public static TValue Deserialize<TValue>(Stream utf8Json, JsonTypeInfo<TValue> jsonTypeInfo)
- public static object Deserialize(Stream 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 IAsyncEnumerable<TValue> DeserializeAsyncEnumerable<TValue>(Stream utf8Json, JsonTypeInfo<TValue> jsonTypeInfo, CancellationToken cancellationToken = default)
- public static void Serialize<TValue>(Stream utf8Json, TValue value, JsonSerializerOptions options = null)
- public static void Serialize(Stream utf8Json, object value, Type inputType, JsonSerializerOptions options = null)
- public static void Serialize<TValue>(Stream utf8Json, TValue value, JsonTypeInfo<TValue> jsonTypeInfo)
- public static void Serialize(Stream utf8Json, object value, Type inputType, JsonSerializerContext context)
- 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 JsonDocument SerializeToDocument<TValue>(TValue value, JsonSerializerOptions options = null)
- public static JsonDocument SerializeToDocument(object value, Type inputType, JsonSerializerOptions options = null)
- public static JsonDocument SerializeToDocument<TValue>(TValue value, JsonTypeInfo<TValue> jsonTypeInfo)
- public static JsonDocument SerializeToDocument(object value, Type inputType, JsonSerializerContext context)
- public static JsonElement SerializeToElement<TValue>(TValue value, JsonSerializerOptions options = null)
- public static JsonElement SerializeToElement(object value, Type inputType, JsonSerializerOptions options = null)
- public static JsonElement SerializeToElement<TValue>(TValue value, JsonTypeInfo<TValue> jsonTypeInfo)
- public static JsonElement SerializeToElement(object value, Type inputType, JsonSerializerContext context)
- public static JsonNode SerializeToNode<TValue>(TValue value, JsonSerializerOptions options = null)
- public static JsonNode SerializeToNode(object value, Type inputType, JsonSerializerOptions options = null)
- public static JsonNode SerializeToNode<TValue>(TValue value, JsonTypeInfo<TValue> jsonTypeInfo)
- public static JsonNode SerializeToNode(object value, Type inputType, JsonSerializerContext context)
- 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
-
public struct JsonWriterOptions
-
public struct Utf8JsonReader
-
public sealed class Utf8JsonWriter : IDisposable, IAsyncDisposable
System.Text.Json.Nodes
-
public sealed class JsonArray : JsonNode, IList<JsonNode>, ICollection<JsonNode>, IEnumerable<JsonNode>, IEnumerable
-
public abstract class JsonNode
-
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
- public static JsonValue Create(bool value, JsonNodeOptions? options = default)
- public static JsonValue Create(bool? value, JsonNodeOptions? options = default)
- public static JsonValue Create(byte value, JsonNodeOptions? options = default)
- public static JsonValue Create(byte? value, JsonNodeOptions? options = default)
- public static JsonValue Create(char value, JsonNodeOptions? options = default)
- public static JsonValue Create(char? value, JsonNodeOptions? options = default)
- public static JsonValue Create(DateTime value, JsonNodeOptions? options = default)
- public static JsonValue Create(DateTime? value, JsonNodeOptions? options = default)
- public static JsonValue Create(DateTimeOffset value, JsonNodeOptions? options = default)
- public static JsonValue Create(DateTimeOffset? value, JsonNodeOptions? options = default)
- public static JsonValue Create(decimal value, JsonNodeOptions? options = default)
- public static JsonValue Create(decimal? value, JsonNodeOptions? options = default)
- public static JsonValue Create(double value, JsonNodeOptions? options = default)
- public static JsonValue Create(double? value, JsonNodeOptions? options = default)
- public static JsonValue Create(Guid value, JsonNodeOptions? options = default)
- public static JsonValue Create(Guid? value, JsonNodeOptions? options = default)
- public static JsonValue Create(short value, JsonNodeOptions? options = default)
- public static JsonValue Create(short? value, JsonNodeOptions? options = default)
- public static JsonValue Create(int value, JsonNodeOptions? options = default)
- public static JsonValue Create(int? value, JsonNodeOptions? options = default)
- public static JsonValue Create(long value, JsonNodeOptions? options = default)
- public static JsonValue Create(long? value, JsonNodeOptions? options = default)
- public static JsonValue Create(sbyte value, JsonNodeOptions? options = default)
- public static JsonValue Create(sbyte? value, JsonNodeOptions? options = default)
- public static JsonValue Create(float value, JsonNodeOptions? options = default)
- public static JsonValue Create(float? value, JsonNodeOptions? options = default)
- public static JsonValue Create(string value, JsonNodeOptions? options = default)
- public static JsonValue Create(ushort value, JsonNodeOptions? options = default)
- public static JsonValue Create(ushort? value, JsonNodeOptions? options = default)
- public static JsonValue Create(uint value, JsonNodeOptions? options = default)
- public static JsonValue Create(uint? value, JsonNodeOptions? options = default)
- public static JsonValue Create(ulong value, JsonNodeOptions? options = default)
- public static JsonValue Create(ulong? value, JsonNodeOptions? options = default)
- public static JsonValue Create(JsonElement value, JsonNodeOptions? options = default)
- public static JsonValue Create(JsonElement? value, JsonNodeOptions? options = default)
- public static JsonValue Create<T>(T value, JsonNodeOptions? options = default)
- public static JsonValue Create<T>(T value, JsonTypeInfo<T> jsonTypeInfo, JsonNodeOptions? options = default)
- public abstract bool TryGetValue<T>(out T value)
System.Text.Json.Serialization
System.Text.Json.Serialization.Metadata
-
public class DefaultJsonTypeInfoResolver : IJsonTypeInfoResolver
-
public interface IJsonTypeInfoResolver
-
public sealed class JsonCollectionInfoValues<TCollection>
-
public struct JsonDerivedType
-
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<JsonArray> JsonArrayConverter { get; }
- public static JsonConverter<JsonDocument> JsonDocumentConverter { get; }
- public static JsonConverter<JsonElement> JsonElementConverter { get; }
- public static JsonConverter<JsonNode> JsonNodeConverter { get; }
- public static JsonConverter<JsonObject> JsonObjectConverter { get; }
- public static JsonConverter<JsonValue> JsonValueConverter { 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<TimeSpan> TimeSpanConverter { 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, JsonCollectionInfoValues<TElement[]> collectionInfo)
- public static JsonTypeInfo<TCollection> CreateConcurrentQueueInfo<TCollection, TElement>(JsonSerializerOptions options, JsonCollectionInfoValues<TCollection> collectionInfo) where TCollection : ConcurrentQueue<TElement>
- public static JsonTypeInfo<TCollection> CreateConcurrentStackInfo<TCollection, TElement>(JsonSerializerOptions options, JsonCollectionInfoValues<TCollection> collectionInfo) where TCollection : ConcurrentStack<TElement>
- public static JsonTypeInfo<TCollection> CreateDictionaryInfo<TCollection, TKey, TValue>(JsonSerializerOptions options, JsonCollectionInfoValues<TCollection> collectionInfo) where TCollection : Dictionary<TKey, TValue>
- public static JsonTypeInfo<TCollection> CreateIAsyncEnumerableInfo<TCollection, TElement>(JsonSerializerOptions options, JsonCollectionInfoValues<TCollection> collectionInfo) where TCollection : IAsyncEnumerable<TElement>
- public static JsonTypeInfo<TCollection> CreateICollectionInfo<TCollection, TElement>(JsonSerializerOptions options, JsonCollectionInfoValues<TCollection> collectionInfo) where TCollection : ICollection<TElement>
- public static JsonTypeInfo<TCollection> CreateIDictionaryInfo<TCollection, TKey, TValue>(JsonSerializerOptions options, JsonCollectionInfoValues<TCollection> collectionInfo) where TCollection : IDictionary<TKey, TValue>
- public static JsonTypeInfo<TCollection> CreateIDictionaryInfo<TCollection>(JsonSerializerOptions options, JsonCollectionInfoValues<TCollection> collectionInfo) where TCollection : IDictionary
- public static JsonTypeInfo<TCollection> CreateIEnumerableInfo<TCollection, TElement>(JsonSerializerOptions options, JsonCollectionInfoValues<TCollection> collectionInfo) where TCollection : IEnumerable<TElement>
- public static JsonTypeInfo<TCollection> CreateIEnumerableInfo<TCollection>(JsonSerializerOptions options, JsonCollectionInfoValues<TCollection> collectionInfo) where TCollection : IEnumerable
- public static JsonTypeInfo<TCollection> CreateIListInfo<TCollection>(JsonSerializerOptions options, JsonCollectionInfoValues<TCollection> collectionInfo) where TCollection : IList
- public static JsonTypeInfo<TCollection> CreateIListInfo<TCollection, TElement>(JsonSerializerOptions options, JsonCollectionInfoValues<TCollection> collectionInfo) where TCollection : IList<TElement>
- public static JsonTypeInfo<TCollection> CreateImmutableDictionaryInfo<TCollection, TKey, TValue>(JsonSerializerOptions options, JsonCollectionInfoValues<TCollection> collectionInfo, Func<IEnumerable<KeyValuePair<TKey, TValue>>, TCollection> createRangeFunc) where TCollection : IReadOnlyDictionary<TKey, TValue>
- public static JsonTypeInfo<TCollection> CreateImmutableEnumerableInfo<TCollection, TElement>(JsonSerializerOptions options, JsonCollectionInfoValues<TCollection> collectionInfo, Func<IEnumerable<TElement>, TCollection> createRangeFunc) where TCollection : IEnumerable<TElement>
- public static JsonTypeInfo<TCollection> CreateIReadOnlyDictionaryInfo<TCollection, TKey, TValue>(JsonSerializerOptions options, JsonCollectionInfoValues<TCollection> collectionInfo) where TCollection : IReadOnlyDictionary<TKey, TValue>
- public static JsonTypeInfo<TCollection> CreateISetInfo<TCollection, TElement>(JsonSerializerOptions options, JsonCollectionInfoValues<TCollection> collectionInfo) where TCollection : ISet<TElement>
- public static JsonTypeInfo<TCollection> CreateListInfo<TCollection, TElement>(JsonSerializerOptions options, JsonCollectionInfoValues<TCollection> collectionInfo) where TCollection : List<TElement>
- public static JsonTypeInfo<T> CreateObjectInfo<T>(JsonSerializerOptions options, JsonObjectInfoValues<T> objectInfo)
- public static JsonPropertyInfo CreatePropertyInfo<T>(JsonSerializerOptions options, JsonPropertyInfoValues<T> propertyInfo)
- public static JsonTypeInfo<TCollection> CreateQueueInfo<TCollection, TElement>(JsonSerializerOptions options, JsonCollectionInfoValues<TCollection> collectionInfo) where TCollection : Queue<TElement>
- public static JsonTypeInfo<TCollection> CreateQueueInfo<TCollection>(JsonSerializerOptions options, JsonCollectionInfoValues<TCollection> collectionInfo, Action<TCollection, object> addFunc) where TCollection : IEnumerable
- public static JsonTypeInfo<TCollection> CreateStackInfo<TCollection, TElement>(JsonSerializerOptions options, JsonCollectionInfoValues<TCollection> collectionInfo) where TCollection : Stack<TElement>
- public static JsonTypeInfo<TCollection> CreateStackInfo<TCollection>(JsonSerializerOptions options, JsonCollectionInfoValues<TCollection> collectionInfo, Action<TCollection, object> addFunc) where TCollection : IEnumerable
- 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 JsonConverter<T?> GetNullableConverter<T>(JsonSerializerOptions options) where T : struct
- public static JsonConverter<T> GetUnsupportedTypeConverter<T>()
-
public sealed class JsonObjectInfoValues<T>
-
public sealed class JsonParameterInfoValues
-
public class JsonPolymorphismOptions
-
public abstract class JsonPropertyInfo
-
public sealed class JsonPropertyInfoValues<T>
-
public abstract class JsonTypeInfo
-
public abstract class JsonTypeInfo<T> : JsonTypeInfo
-
public enum JsonTypeInfoKind
-
public static class JsonTypeInfoResolver