<PackageReference Include="System.Text.Json" Version="5.0.0-preview.2.20160.6" />
API Differences between 5.0.0-preview.2.20160.6 and 7.0.3
185 Additions
122 Removals
System.Text.Json
-
public enum DuplicatePropertyNameHandlingStrategy
-
public sealed class JsonArray : JsonNode, IList<JsonNode>, ICollection<JsonNode>, IEnumerable<JsonNode>, IEnumerable, IReadOnlyList<JsonNode>, IReadOnlyCollection<JsonNode>
-
public struct JsonArrayEnumerator : IEnumerator<JsonNode>, IEnumerator, IDisposable
-
public sealed class JsonBoolean : JsonNode, IEquatable<JsonBoolean>
-
public struct JsonElement
-
public abstract class JsonNode
-
public struct JsonNodeOptions
-
public sealed class JsonNull : JsonNode, IEquatable<JsonNull>
-
public sealed class JsonNumber : JsonNode, IEquatable<JsonNumber>
-
public sealed class JsonObject : JsonNode, IEnumerable<KeyValuePair<string, JsonNode>>, IEnumerable
- public JsonNode this[string propertyName] { get; set; }
- public JsonObject()
- public JsonObject(IEnumerable<KeyValuePair<string, JsonNode>> jsonProperties)
- public void Add(KeyValuePair<string, JsonNode> jsonProperty)
- public void Add(string propertyName, JsonNode propertyValue)
- public void AddRange(IEnumerable<KeyValuePair<string, JsonNode>> jsonProperties)
- public bool ContainsProperty(string propertyName)
- public bool ContainsProperty(string propertyName, StringComparison stringComparison)
- public JsonObjectEnumerator GetEnumerator()
- public JsonArray GetJsonArrayPropertyValue(string propertyName)
- public JsonArray GetJsonArrayPropertyValue(string propertyName, StringComparison stringComparison)
- public JsonObject GetJsonObjectPropertyValue(string propertyName)
- public JsonObject GetJsonObjectPropertyValue(string propertyName, StringComparison stringComparison)
- public IReadOnlyCollection<string> GetPropertyNames()
- public JsonNode GetPropertyValue(string propertyName)
- public JsonNode GetPropertyValue(string propertyName, StringComparison stringComparison)
- public IReadOnlyCollection<JsonNode> GetPropertyValues()
- public bool Remove(string propertyName)
- public bool Remove(string propertyName, StringComparison stringComparison)
- public bool TryGetJsonArrayPropertyValue(string propertyName, out JsonArray jsonArray)
- public bool TryGetJsonArrayPropertyValue(string propertyName, StringComparison stringComparison, out JsonArray jsonArray)
- public bool TryGetJsonObjectPropertyValue(string propertyName, out JsonObject jsonObject)
- public bool TryGetJsonObjectPropertyValue(string propertyName, StringComparison stringComparison, out JsonObject jsonObject)
- public bool TryGetPropertyValue(string propertyName, out JsonNode jsonNode)
- public bool TryGetPropertyValue(string propertyName, StringComparison stringComparison, out JsonNode jsonNode)
-
public struct JsonObjectEnumerator : IEnumerator<KeyValuePair<string, JsonNode>>, IEnumerator, IDisposable
-
public static class JsonSerializer
- public static TValue Deserialize<TValue>(JsonDocument document, JsonSerializerOptions options = null)
- public static object Deserialize(JsonDocument document, Type returnType, JsonSerializerOptions options = null)
- public static TValue Deserialize<TValue>(JsonDocument document, JsonTypeInfo<TValue> jsonTypeInfo)
- public static object Deserialize(JsonDocument document, Type returnType, JsonSerializerContext context)
- public static TValue Deserialize<TValue>(JsonElement element, JsonSerializerOptions options = null)
- public static object Deserialize(JsonElement element, Type returnType, JsonSerializerOptions options = null)
- public static TValue Deserialize<TValue>(JsonElement element, JsonTypeInfo<TValue> jsonTypeInfo)
- public static object Deserialize(JsonElement element, Type returnType, JsonSerializerContext context)
- public static TValue Deserialize<TValue>(JsonNode node, JsonSerializerOptions options = null)
- public static object Deserialize(JsonNode node, Type returnType, JsonSerializerOptions options = null)
- public static TValue Deserialize<TValue>(JsonNode node, JsonTypeInfo<TValue> jsonTypeInfo)
- public static object Deserialize(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>(ReadOnlySpan<char> json, 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 sealed class JsonString : JsonNode, IEquatable<JsonString>
-
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
System.Text.Json.Serialization
System.Text.Json.Serialization.Metadata