diff --git a/eng/Build.props b/eng/Build.props index c3415d2d6d..d0b96ce2a7 100644 --- a/eng/Build.props +++ b/eng/Build.props @@ -35,6 +35,8 @@ + + diff --git a/src/referencePackages/src/system.text.json/8.0.3/System.Text.Json.8.0.3.csproj b/src/referencePackages/src/system.text.json/8.0.3/System.Text.Json.8.0.3.csproj new file mode 100644 index 0000000000..ce17a625a1 --- /dev/null +++ b/src/referencePackages/src/system.text.json/8.0.3/System.Text.Json.8.0.3.csproj @@ -0,0 +1,35 @@ + + + + net6.0;net7.0;net8.0;netstandard2.0 + System.Text.Json + Open + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/referencePackages/src/system.text.json/8.0.3/lib/net6.0/System.Text.Json.cs b/src/referencePackages/src/system.text.json/8.0.3/lib/net6.0/System.Text.Json.cs new file mode 100644 index 0000000000..6de49de2d8 --- /dev/null +++ b/src/referencePackages/src/system.text.json/8.0.3/lib/net6.0/System.Text.Json.cs @@ -0,0 +1,2150 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. +// ------------------------------------------------------------------------------ +// Changes to this file must follow the http://aka.ms/api-review process. +// ------------------------------------------------------------------------------ +[assembly: System.Runtime.CompilerServices.CompilationRelaxations(8)] +[assembly: System.Runtime.CompilerServices.RuntimeCompatibility(WrapNonExceptionThrows = true)] +[assembly: System.Diagnostics.Debuggable(System.Diagnostics.DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] +[assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")] +[assembly: System.Reflection.AssemblyMetadata("Serviceable", "True")] +[assembly: System.Reflection.AssemblyMetadata("PreferInbox", "True")] +[assembly: System.Reflection.AssemblyDefaultAlias("System.Text.Json")] +[assembly: System.Resources.NeutralResourcesLanguage("en-US")] +[assembly: System.CLSCompliant(true)] +[assembly: System.Reflection.AssemblyMetadata("IsTrimmable", "True")] +[assembly: System.Runtime.InteropServices.DefaultDllImportSearchPaths(System.Runtime.InteropServices.DllImportSearchPath.AssemblyDirectory | System.Runtime.InteropServices.DllImportSearchPath.System32)] +[assembly: System.Reflection.AssemblyCompany("Microsoft Corporation")] +[assembly: System.Reflection.AssemblyCopyright("© Microsoft Corporation. All rights reserved.")] +[assembly: System.Reflection.AssemblyDescription("Provides high-performance and low-allocating types that serialize objects to JavaScript Object Notation (JSON) text and deserialize JSON text to objects, with UTF-8 support built-in. Also provides types to read and write JSON text encoded as UTF-8, and to create an in-memory document object model (DOM), that is read-only, for random access of the JSON elements within a structured view of the data.\r\n\r\nThe System.Text.Json library is built-in as part of the shared framework in .NET Runtime. The package can be installed when you need to use it in other target frameworks.")] +[assembly: System.Reflection.AssemblyFileVersion("8.0.324.11423")] +[assembly: System.Reflection.AssemblyInformationalVersion("8.0.3+9f4b1f5d664afdfc80e1508ab7ed099dff210fbd")] +[assembly: System.Reflection.AssemblyProduct("Microsoft® .NET")] +[assembly: System.Reflection.AssemblyTitle("System.Text.Json")] +[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/dotnet/runtime")] +[assembly: System.Reflection.AssemblyVersionAttribute("8.0.0.0")] +[assembly: System.Runtime.CompilerServices.ReferenceAssembly] +[assembly: System.Reflection.AssemblyFlagsAttribute((System.Reflection.AssemblyNameFlags)0x70)] +[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.CompilerServices.IsExternalInit))] +namespace System.Text.Json +{ + public enum JsonCommentHandling : byte + { + Disallow = 0, + Skip = 1, + Allow = 2 + } + + public sealed partial class JsonDocument : IDisposable + { + internal JsonDocument() { } + + public JsonElement RootElement { get { throw null; } } + + public void Dispose() { } + + public static JsonDocument Parse(Buffers.ReadOnlySequence utf8Json, JsonDocumentOptions options = default) { throw null; } + + public static JsonDocument Parse(IO.Stream utf8Json, JsonDocumentOptions options = default) { throw null; } + + public static JsonDocument Parse(ReadOnlyMemory utf8Json, JsonDocumentOptions options = default) { throw null; } + + public static JsonDocument Parse(ReadOnlyMemory json, JsonDocumentOptions options = default) { throw null; } + + public static JsonDocument Parse(string json, JsonDocumentOptions options = default) { throw null; } + + public static Threading.Tasks.Task ParseAsync(IO.Stream utf8Json, JsonDocumentOptions options = default, Threading.CancellationToken cancellationToken = default) { throw null; } + + public static JsonDocument ParseValue(ref Utf8JsonReader reader) { throw null; } + + public static bool TryParseValue(ref Utf8JsonReader reader, out JsonDocument? document) { throw null; } + + public void WriteTo(Utf8JsonWriter writer) { } + } + + public partial struct JsonDocumentOptions + { + private int _dummyPrimitive; + public bool AllowTrailingCommas { get { throw null; } set { } } + + public JsonCommentHandling CommentHandling { get { throw null; } set { } } + + public int MaxDepth { get { throw null; } set { } } + } + + public readonly partial struct JsonElement + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public JsonElement this[int index] { get { throw null; } } + + public JsonValueKind ValueKind { get { throw null; } } + + public readonly JsonElement Clone() { throw null; } + + public readonly ArrayEnumerator EnumerateArray() { throw null; } + + public readonly ObjectEnumerator EnumerateObject() { throw null; } + + public readonly int GetArrayLength() { throw null; } + + public readonly bool GetBoolean() { throw null; } + + public readonly byte GetByte() { throw null; } + + public readonly byte[] GetBytesFromBase64() { throw null; } + + public readonly DateTime GetDateTime() { throw null; } + + public readonly DateTimeOffset GetDateTimeOffset() { throw null; } + + public readonly decimal GetDecimal() { throw null; } + + public readonly double GetDouble() { throw null; } + + public readonly Guid GetGuid() { throw null; } + + public readonly short GetInt16() { throw null; } + + public readonly int GetInt32() { throw null; } + + public readonly long GetInt64() { throw null; } + + public readonly JsonElement GetProperty(ReadOnlySpan utf8PropertyName) { throw null; } + + public readonly JsonElement GetProperty(ReadOnlySpan propertyName) { throw null; } + + public readonly JsonElement GetProperty(string propertyName) { throw null; } + + public readonly string GetRawText() { throw null; } + + [CLSCompliant(false)] + public readonly sbyte GetSByte() { throw null; } + + public readonly float GetSingle() { throw null; } + + public readonly string? GetString() { throw null; } + + [CLSCompliant(false)] + public readonly ushort GetUInt16() { throw null; } + + [CLSCompliant(false)] + public readonly uint GetUInt32() { throw null; } + + [CLSCompliant(false)] + public readonly ulong GetUInt64() { throw null; } + + public static JsonElement ParseValue(ref Utf8JsonReader reader) { throw null; } + + public override readonly string ToString() { throw null; } + + public readonly bool TryGetByte(out byte value) { throw null; } + + public readonly bool TryGetBytesFromBase64(out byte[]? value) { throw null; } + + public readonly bool TryGetDateTime(out DateTime value) { throw null; } + + public readonly bool TryGetDateTimeOffset(out DateTimeOffset value) { throw null; } + + public readonly bool TryGetDecimal(out decimal value) { throw null; } + + public readonly bool TryGetDouble(out double value) { throw null; } + + public readonly bool TryGetGuid(out Guid value) { throw null; } + + public readonly bool TryGetInt16(out short value) { throw null; } + + public readonly bool TryGetInt32(out int value) { throw null; } + + public readonly bool TryGetInt64(out long value) { throw null; } + + public readonly bool TryGetProperty(ReadOnlySpan utf8PropertyName, out JsonElement value) { throw null; } + + public readonly bool TryGetProperty(ReadOnlySpan propertyName, out JsonElement value) { throw null; } + + public readonly bool TryGetProperty(string propertyName, out JsonElement value) { throw null; } + + [CLSCompliant(false)] + public readonly bool TryGetSByte(out sbyte value) { throw null; } + + public readonly bool TryGetSingle(out float value) { throw null; } + + [CLSCompliant(false)] + public readonly bool TryGetUInt16(out ushort value) { throw null; } + + [CLSCompliant(false)] + public readonly bool TryGetUInt32(out uint value) { throw null; } + + [CLSCompliant(false)] + public readonly bool TryGetUInt64(out ulong value) { throw null; } + + public static bool TryParseValue(ref Utf8JsonReader reader, out JsonElement? element) { throw null; } + + public readonly bool ValueEquals(ReadOnlySpan utf8Text) { throw null; } + + public readonly bool ValueEquals(ReadOnlySpan text) { throw null; } + + public readonly bool ValueEquals(string? text) { throw null; } + + public readonly void WriteTo(Utf8JsonWriter writer) { } + + public partial struct ArrayEnumerator : Collections.Generic.IEnumerable, Collections.IEnumerable, Collections.Generic.IEnumerator, Collections.IEnumerator, IDisposable + { + private int _dummyPrimitive; + public JsonElement Current { get { throw null; } } + + object Collections.IEnumerator.Current { get { throw null; } } + + public void Dispose() { } + + public ArrayEnumerator GetEnumerator() { throw null; } + + public bool MoveNext() { throw null; } + + public void Reset() { } + + Collections.Generic.IEnumerator Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + + Collections.IEnumerator Collections.IEnumerable.GetEnumerator() { throw null; } + } + + public partial struct ObjectEnumerator : Collections.Generic.IEnumerable, Collections.IEnumerable, Collections.Generic.IEnumerator, Collections.IEnumerator, IDisposable + { + private int _dummyPrimitive; + public JsonProperty Current { get { throw null; } } + + object Collections.IEnumerator.Current { get { throw null; } } + + public void Dispose() { } + + public ObjectEnumerator GetEnumerator() { throw null; } + + public bool MoveNext() { throw null; } + + public void Reset() { } + + Collections.Generic.IEnumerator Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + + Collections.IEnumerator Collections.IEnumerable.GetEnumerator() { throw null; } + } + } + + public readonly partial struct JsonEncodedText : IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ReadOnlySpan EncodedUtf8Bytes { get { throw null; } } + + public string Value { get { throw null; } } + + public static JsonEncodedText Encode(ReadOnlySpan utf8Value, Encodings.Web.JavaScriptEncoder? encoder = null) { throw null; } + + public static JsonEncodedText Encode(ReadOnlySpan value, Encodings.Web.JavaScriptEncoder? encoder = null) { throw null; } + + public static JsonEncodedText Encode(string value, Encodings.Web.JavaScriptEncoder? encoder = null) { throw null; } + + public override readonly bool Equals(object? obj) { throw null; } + + public readonly bool Equals(JsonEncodedText other) { throw null; } + + public override readonly int GetHashCode() { throw null; } + + public override readonly string ToString() { throw null; } + } + + public partial class JsonException : Exception + { + public JsonException() { } + + protected JsonException(Runtime.Serialization.SerializationInfo info, Runtime.Serialization.StreamingContext context) { } + + public JsonException(string? message, Exception? innerException) { } + + public JsonException(string? message, string? path, long? lineNumber, long? bytePositionInLine, Exception? innerException) { } + + public JsonException(string? message, string? path, long? lineNumber, long? bytePositionInLine) { } + + public JsonException(string? message) { } + + public long? BytePositionInLine { get { throw null; } } + + public long? LineNumber { get { throw null; } } + + public override string Message { get { throw null; } } + + public string? Path { get { throw null; } } + + public override void GetObjectData(Runtime.Serialization.SerializationInfo info, Runtime.Serialization.StreamingContext context) { } + } + + public abstract partial class JsonNamingPolicy + { + public static JsonNamingPolicy CamelCase { get { throw null; } } + + public static JsonNamingPolicy KebabCaseLower { get { throw null; } } + + public static JsonNamingPolicy KebabCaseUpper { get { throw null; } } + + public static JsonNamingPolicy SnakeCaseLower { get { throw null; } } + + public static JsonNamingPolicy SnakeCaseUpper { get { throw null; } } + + public abstract string ConvertName(string name); + } + + public readonly partial struct JsonProperty + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public string Name { get { throw null; } } + + public JsonElement Value { get { throw null; } } + + public readonly bool NameEquals(ReadOnlySpan utf8Text) { throw null; } + + public readonly bool NameEquals(ReadOnlySpan text) { throw null; } + + public readonly bool NameEquals(string? text) { throw null; } + + public override readonly string ToString() { throw null; } + + public readonly void WriteTo(Utf8JsonWriter writer) { } + } + + public partial struct JsonReaderOptions + { + private int _dummyPrimitive; + public bool AllowTrailingCommas { get { throw null; } set { } } + + public JsonCommentHandling CommentHandling { get { throw null; } set { } } + + public int MaxDepth { get { throw null; } set { } } + } + + public partial struct JsonReaderState + { + private int _dummyPrimitive; + public JsonReaderState(JsonReaderOptions options = default) { } + + public JsonReaderOptions Options { get { throw null; } } + } + + public static partial class JsonSerializer + { + public static bool IsReflectionEnabledByDefault { get { throw null; } } + + public static object? Deserialize(IO.Stream utf8Json, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + public static object? Deserialize(IO.Stream utf8Json, Type returnType, JsonSerializerOptions? options = null) { throw null; } + + public static object? Deserialize(IO.Stream utf8Json, Type returnType, Serialization.JsonSerializerContext context) { throw null; } + + public static object? Deserialize(ReadOnlySpan utf8Json, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + public static object? Deserialize(ReadOnlySpan utf8Json, Type returnType, JsonSerializerOptions? options = null) { throw null; } + + public static object? Deserialize(ReadOnlySpan utf8Json, Type returnType, Serialization.JsonSerializerContext context) { throw null; } + + public static object? Deserialize(ReadOnlySpan json, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + public static object? Deserialize(ReadOnlySpan json, Type returnType, JsonSerializerOptions? options = null) { throw null; } + + public static object? Deserialize(ReadOnlySpan json, Type returnType, Serialization.JsonSerializerContext context) { throw null; } + + public static object? Deserialize(string json, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + public static object? Deserialize(string json, Type returnType, JsonSerializerOptions? options = null) { throw null; } + + public static object? Deserialize(string json, Type returnType, Serialization.JsonSerializerContext context) { throw null; } + + public static object? Deserialize(this JsonDocument document, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + public static object? Deserialize(this JsonDocument document, Type returnType, JsonSerializerOptions? options = null) { throw null; } + + public static object? Deserialize(this JsonDocument document, Type returnType, Serialization.JsonSerializerContext context) { throw null; } + + public static object? Deserialize(this JsonElement element, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + public static object? Deserialize(this JsonElement element, Type returnType, JsonSerializerOptions? options = null) { throw null; } + + public static object? Deserialize(this JsonElement element, Type returnType, Serialization.JsonSerializerContext context) { throw null; } + + public static object? Deserialize(this Nodes.JsonNode? node, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + public static object? Deserialize(this Nodes.JsonNode? node, Type returnType, JsonSerializerOptions? options = null) { throw null; } + + public static object? Deserialize(this Nodes.JsonNode? node, Type returnType, Serialization.JsonSerializerContext context) { throw null; } + + public static object? Deserialize(ref Utf8JsonReader reader, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + public static object? Deserialize(ref Utf8JsonReader reader, Type returnType, JsonSerializerOptions? options = null) { throw null; } + + public static object? Deserialize(ref Utf8JsonReader reader, Type returnType, Serialization.JsonSerializerContext context) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + public static TValue? Deserialize(IO.Stream utf8Json, JsonSerializerOptions? options = null) { throw null; } + + public static TValue? Deserialize(IO.Stream utf8Json, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + public static TValue? Deserialize(ReadOnlySpan utf8Json, JsonSerializerOptions? options = null) { throw null; } + + public static TValue? Deserialize(ReadOnlySpan utf8Json, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + public static TValue? Deserialize(ReadOnlySpan json, JsonSerializerOptions? options = null) { throw null; } + + public static TValue? Deserialize(ReadOnlySpan json, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + public static TValue? Deserialize(string json, JsonSerializerOptions? options = null) { throw null; } + + public static TValue? Deserialize(string json, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + public static TValue? Deserialize(this JsonDocument document, JsonSerializerOptions? options = null) { throw null; } + + public static TValue? Deserialize(this JsonDocument document, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + public static TValue? Deserialize(this JsonElement element, JsonSerializerOptions? options = null) { throw null; } + + public static TValue? Deserialize(this JsonElement element, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + public static TValue? Deserialize(this Nodes.JsonNode? node, JsonSerializerOptions? options = null) { throw null; } + + public static TValue? Deserialize(this Nodes.JsonNode? node, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + public static TValue? Deserialize(ref Utf8JsonReader reader, JsonSerializerOptions? options = null) { throw null; } + + public static TValue? Deserialize(ref Utf8JsonReader reader, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + public static Threading.Tasks.ValueTask DeserializeAsync(IO.Stream utf8Json, Serialization.Metadata.JsonTypeInfo jsonTypeInfo, Threading.CancellationToken cancellationToken = default) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + public static Threading.Tasks.ValueTask DeserializeAsync(IO.Stream utf8Json, Type returnType, JsonSerializerOptions? options = null, Threading.CancellationToken cancellationToken = default) { throw null; } + + public static Threading.Tasks.ValueTask DeserializeAsync(IO.Stream utf8Json, Type returnType, Serialization.JsonSerializerContext context, Threading.CancellationToken cancellationToken = default) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + public static Threading.Tasks.ValueTask DeserializeAsync(IO.Stream utf8Json, JsonSerializerOptions? options = null, Threading.CancellationToken cancellationToken = default) { throw null; } + + public static Threading.Tasks.ValueTask DeserializeAsync(IO.Stream utf8Json, Serialization.Metadata.JsonTypeInfo jsonTypeInfo, Threading.CancellationToken cancellationToken = default) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + public static Collections.Generic.IAsyncEnumerable DeserializeAsyncEnumerable(IO.Stream utf8Json, JsonSerializerOptions? options = null, Threading.CancellationToken cancellationToken = default) { throw null; } + + public static Collections.Generic.IAsyncEnumerable DeserializeAsyncEnumerable(IO.Stream utf8Json, Serialization.Metadata.JsonTypeInfo jsonTypeInfo, Threading.CancellationToken cancellationToken = default) { throw null; } + + public static void Serialize(IO.Stream utf8Json, object? value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + public static void Serialize(IO.Stream utf8Json, object? value, Type inputType, JsonSerializerOptions? options = null) { } + + public static void Serialize(IO.Stream utf8Json, object? value, Type inputType, Serialization.JsonSerializerContext context) { } + + public static string Serialize(object? value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + public static string Serialize(object? value, Type inputType, JsonSerializerOptions? options = null) { throw null; } + + public static string Serialize(object? value, Type inputType, Serialization.JsonSerializerContext context) { throw null; } + + public static void Serialize(Utf8JsonWriter writer, object? value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + public static void Serialize(Utf8JsonWriter writer, object? value, Type inputType, JsonSerializerOptions? options = null) { } + + public static void Serialize(Utf8JsonWriter writer, object? value, Type inputType, Serialization.JsonSerializerContext context) { } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + public static string Serialize(TValue value, JsonSerializerOptions? options = null) { throw null; } + + public static string Serialize(TValue value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + public static void Serialize(IO.Stream utf8Json, TValue value, JsonSerializerOptions? options = null) { } + + public static void Serialize(IO.Stream utf8Json, TValue value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + public static void Serialize(Utf8JsonWriter writer, TValue value, JsonSerializerOptions? options = null) { } + + public static void Serialize(Utf8JsonWriter writer, TValue value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { } + + public static Threading.Tasks.Task SerializeAsync(IO.Stream utf8Json, object? value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo, Threading.CancellationToken cancellationToken = default) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + public static Threading.Tasks.Task SerializeAsync(IO.Stream utf8Json, object? value, Type inputType, JsonSerializerOptions? options = null, Threading.CancellationToken cancellationToken = default) { throw null; } + + public static Threading.Tasks.Task SerializeAsync(IO.Stream utf8Json, object? value, Type inputType, Serialization.JsonSerializerContext context, Threading.CancellationToken cancellationToken = default) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + public static Threading.Tasks.Task SerializeAsync(IO.Stream utf8Json, TValue value, JsonSerializerOptions? options = null, Threading.CancellationToken cancellationToken = default) { throw null; } + + public static Threading.Tasks.Task SerializeAsync(IO.Stream utf8Json, TValue value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo, Threading.CancellationToken cancellationToken = default) { throw null; } + + public static JsonDocument SerializeToDocument(object? value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + public static JsonDocument SerializeToDocument(object? value, Type inputType, JsonSerializerOptions? options = null) { throw null; } + + public static JsonDocument SerializeToDocument(object? value, Type inputType, Serialization.JsonSerializerContext context) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + public static JsonDocument SerializeToDocument(TValue value, JsonSerializerOptions? options = null) { throw null; } + + public static JsonDocument SerializeToDocument(TValue value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + public static JsonElement SerializeToElement(object? value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + public static JsonElement SerializeToElement(object? value, Type inputType, JsonSerializerOptions? options = null) { throw null; } + + public static JsonElement SerializeToElement(object? value, Type inputType, Serialization.JsonSerializerContext context) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + public static JsonElement SerializeToElement(TValue value, JsonSerializerOptions? options = null) { throw null; } + + public static JsonElement SerializeToElement(TValue value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + public static Nodes.JsonNode? SerializeToNode(object? value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + public static Nodes.JsonNode? SerializeToNode(object? value, Type inputType, JsonSerializerOptions? options = null) { throw null; } + + public static Nodes.JsonNode? SerializeToNode(object? value, Type inputType, Serialization.JsonSerializerContext context) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + public static Nodes.JsonNode? SerializeToNode(TValue value, JsonSerializerOptions? options = null) { throw null; } + + public static Nodes.JsonNode? SerializeToNode(TValue value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + public static byte[] SerializeToUtf8Bytes(object? value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + public static byte[] SerializeToUtf8Bytes(object? value, Type inputType, JsonSerializerOptions? options = null) { throw null; } + + public static byte[] SerializeToUtf8Bytes(object? value, Type inputType, Serialization.JsonSerializerContext context) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + public static byte[] SerializeToUtf8Bytes(TValue value, JsonSerializerOptions? options = null) { throw null; } + + public static byte[] SerializeToUtf8Bytes(TValue value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + } + + public enum JsonSerializerDefaults + { + General = 0, + Web = 1 + } + + public sealed partial class JsonSerializerOptions + { + public JsonSerializerOptions() { } + + public JsonSerializerOptions(JsonSerializerDefaults defaults) { } + + public JsonSerializerOptions(JsonSerializerOptions options) { } + + public bool AllowTrailingCommas { get { throw null; } set { } } + + public Collections.Generic.IList Converters { get { throw null; } } + + public static JsonSerializerOptions Default { get { throw null; } } + + public int DefaultBufferSize { get { throw null; } set { } } + + public Serialization.JsonIgnoreCondition DefaultIgnoreCondition { get { throw null; } set { } } + + public JsonNamingPolicy? DictionaryKeyPolicy { get { throw null; } set { } } + + public Encodings.Web.JavaScriptEncoder? Encoder { get { throw null; } set { } } + + [Obsolete("JsonSerializerOptions.IgnoreNullValues is obsolete. To ignore null values when serializing, set DefaultIgnoreCondition to JsonIgnoreCondition.WhenWritingNull.", DiagnosticId = "SYSLIB0020", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")] + public bool IgnoreNullValues { get { throw null; } set { } } + + public bool IgnoreReadOnlyFields { get { throw null; } set { } } + + public bool IgnoreReadOnlyProperties { get { throw null; } set { } } + + public bool IncludeFields { get { throw null; } set { } } + + public bool IsReadOnly { get { throw null; } } + + public int MaxDepth { get { throw null; } set { } } + + public Serialization.JsonNumberHandling NumberHandling { get { throw null; } set { } } + + public Serialization.JsonObjectCreationHandling PreferredObjectCreationHandling { get { throw null; } set { } } + + public bool PropertyNameCaseInsensitive { get { throw null; } set { } } + + public JsonNamingPolicy? PropertyNamingPolicy { get { throw null; } set { } } + + public JsonCommentHandling ReadCommentHandling { get { throw null; } set { } } + + public Serialization.ReferenceHandler? ReferenceHandler { get { throw null; } set { } } + + public Serialization.Metadata.IJsonTypeInfoResolver? TypeInfoResolver { get { throw null; } set { } } + + public Collections.Generic.IList TypeInfoResolverChain { get { throw null; } } + + public Serialization.JsonUnknownTypeHandling UnknownTypeHandling { get { throw null; } set { } } + + public Serialization.JsonUnmappedMemberHandling UnmappedMemberHandling { get { throw null; } set { } } + + public bool WriteIndented { get { throw null; } set { } } + + [Obsolete("JsonSerializerOptions.AddContext is obsolete. To register a JsonSerializerContext, use either the TypeInfoResolver or TypeInfoResolverChain properties.", DiagnosticId = "SYSLIB0049", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")] + public void AddContext() + where TContext : Serialization.JsonSerializerContext, new() { } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Getting a converter for a type may require reflection which depends on unreferenced code.")] + public Serialization.JsonConverter GetConverter(Type typeToConvert) { throw null; } + + public Serialization.Metadata.JsonTypeInfo GetTypeInfo(Type type) { throw null; } + + public void MakeReadOnly() { } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Populating unconfigured TypeInfoResolver properties with the reflection resolver requires unreferenced code.")] + public void MakeReadOnly(bool populateMissingResolver) { } + + public bool TryGetTypeInfo(Type type, out Serialization.Metadata.JsonTypeInfo? typeInfo) { throw null; } + } + + public enum JsonTokenType : byte + { + None = 0, + StartObject = 1, + EndObject = 2, + StartArray = 3, + EndArray = 4, + PropertyName = 5, + Comment = 6, + String = 7, + Number = 8, + True = 9, + False = 10, + Null = 11 + } + + public enum JsonValueKind : byte + { + Undefined = 0, + Object = 1, + Array = 2, + String = 3, + Number = 4, + True = 5, + False = 6, + Null = 7 + } + + public partial struct JsonWriterOptions + { + private object _dummy; + private int _dummyPrimitive; + public Encodings.Web.JavaScriptEncoder? Encoder { get { throw null; } set { } } + + public bool Indented { get { throw null; } set { } } + + public int MaxDepth { get { throw null; } set { } } + + public bool SkipValidation { get { throw null; } set { } } + } + + public ref partial struct Utf8JsonReader + { + private object _dummy; + private int _dummyPrimitive; + public Utf8JsonReader(Buffers.ReadOnlySequence jsonData, bool isFinalBlock, JsonReaderState state) { } + + public Utf8JsonReader(Buffers.ReadOnlySequence jsonData, JsonReaderOptions options = default) { } + + public Utf8JsonReader(ReadOnlySpan jsonData, bool isFinalBlock, JsonReaderState state) { } + + public Utf8JsonReader(ReadOnlySpan jsonData, JsonReaderOptions options = default) { } + + public long BytesConsumed { get { throw null; } } + + public int CurrentDepth { get { throw null; } } + + public JsonReaderState CurrentState { get { throw null; } } + + public bool HasValueSequence { get { throw null; } } + + public bool IsFinalBlock { get { throw null; } } + + public SequencePosition Position { get { throw null; } } + + public long TokenStartIndex { get { throw null; } } + + public JsonTokenType TokenType { get { throw null; } } + + public bool ValueIsEscaped { get { throw null; } } + + public Buffers.ReadOnlySequence ValueSequence { get { throw null; } } + + public ReadOnlySpan ValueSpan { get { throw null; } } + + public readonly int CopyString(Span utf8Destination) { throw null; } + + public readonly int CopyString(Span destination) { throw null; } + + public bool GetBoolean() { throw null; } + + public byte GetByte() { throw null; } + + public byte[] GetBytesFromBase64() { throw null; } + + public string GetComment() { throw null; } + + public DateTime GetDateTime() { throw null; } + + public DateTimeOffset GetDateTimeOffset() { throw null; } + + public decimal GetDecimal() { throw null; } + + public double GetDouble() { throw null; } + + public Guid GetGuid() { throw null; } + + public short GetInt16() { throw null; } + + public int GetInt32() { throw null; } + + public long GetInt64() { throw null; } + + [CLSCompliant(false)] + public sbyte GetSByte() { throw null; } + + public float GetSingle() { throw null; } + + public string? GetString() { throw null; } + + [CLSCompliant(false)] + public ushort GetUInt16() { throw null; } + + [CLSCompliant(false)] + public uint GetUInt32() { throw null; } + + [CLSCompliant(false)] + public ulong GetUInt64() { throw null; } + + public bool Read() { throw null; } + + public void Skip() { } + + public bool TryGetByte(out byte value) { throw null; } + + public bool TryGetBytesFromBase64(out byte[]? value) { throw null; } + + public bool TryGetDateTime(out DateTime value) { throw null; } + + public bool TryGetDateTimeOffset(out DateTimeOffset value) { throw null; } + + public bool TryGetDecimal(out decimal value) { throw null; } + + public bool TryGetDouble(out double value) { throw null; } + + public bool TryGetGuid(out Guid value) { throw null; } + + public bool TryGetInt16(out short value) { throw null; } + + public bool TryGetInt32(out int value) { throw null; } + + public bool TryGetInt64(out long value) { throw null; } + + [CLSCompliant(false)] + public bool TryGetSByte(out sbyte value) { throw null; } + + public bool TryGetSingle(out float value) { throw null; } + + [CLSCompliant(false)] + public bool TryGetUInt16(out ushort value) { throw null; } + + [CLSCompliant(false)] + public bool TryGetUInt32(out uint value) { throw null; } + + [CLSCompliant(false)] + public bool TryGetUInt64(out ulong value) { throw null; } + + public bool TrySkip() { throw null; } + + public readonly bool ValueTextEquals(ReadOnlySpan utf8Text) { throw null; } + + public readonly bool ValueTextEquals(ReadOnlySpan text) { throw null; } + + public readonly bool ValueTextEquals(string? text) { throw null; } + } + + public sealed partial class Utf8JsonWriter : IDisposable, IAsyncDisposable + { + public Utf8JsonWriter(Buffers.IBufferWriter bufferWriter, JsonWriterOptions options = default) { } + + public Utf8JsonWriter(IO.Stream utf8Json, JsonWriterOptions options = default) { } + + public long BytesCommitted { get { throw null; } } + + public int BytesPending { get { throw null; } } + + public int CurrentDepth { get { throw null; } } + + public JsonWriterOptions Options { get { throw null; } } + + public void Dispose() { } + + public Threading.Tasks.ValueTask DisposeAsync() { throw null; } + + public void Flush() { } + + public Threading.Tasks.Task FlushAsync(Threading.CancellationToken cancellationToken = default) { throw null; } + + public void Reset() { } + + public void Reset(Buffers.IBufferWriter bufferWriter) { } + + public void Reset(IO.Stream utf8Json) { } + + public void WriteBase64String(ReadOnlySpan utf8PropertyName, ReadOnlySpan bytes) { } + + public void WriteBase64String(ReadOnlySpan propertyName, ReadOnlySpan bytes) { } + + public void WriteBase64String(string propertyName, ReadOnlySpan bytes) { } + + public void WriteBase64String(JsonEncodedText propertyName, ReadOnlySpan bytes) { } + + public void WriteBase64StringValue(ReadOnlySpan bytes) { } + + public void WriteBoolean(ReadOnlySpan utf8PropertyName, bool value) { } + + public void WriteBoolean(ReadOnlySpan propertyName, bool value) { } + + public void WriteBoolean(string propertyName, bool value) { } + + public void WriteBoolean(JsonEncodedText propertyName, bool value) { } + + public void WriteBooleanValue(bool value) { } + + public void WriteCommentValue(ReadOnlySpan utf8Value) { } + + public void WriteCommentValue(ReadOnlySpan value) { } + + public void WriteCommentValue(string value) { } + + public void WriteEndArray() { } + + public void WriteEndObject() { } + + public void WriteNull(ReadOnlySpan utf8PropertyName) { } + + public void WriteNull(ReadOnlySpan propertyName) { } + + public void WriteNull(string propertyName) { } + + public void WriteNull(JsonEncodedText propertyName) { } + + public void WriteNullValue() { } + + public void WriteNumber(ReadOnlySpan utf8PropertyName, decimal value) { } + + public void WriteNumber(ReadOnlySpan utf8PropertyName, double value) { } + + public void WriteNumber(ReadOnlySpan utf8PropertyName, int value) { } + + public void WriteNumber(ReadOnlySpan utf8PropertyName, long value) { } + + public void WriteNumber(ReadOnlySpan utf8PropertyName, float value) { } + + [CLSCompliant(false)] + public void WriteNumber(ReadOnlySpan utf8PropertyName, uint value) { } + + [CLSCompliant(false)] + public void WriteNumber(ReadOnlySpan utf8PropertyName, ulong value) { } + + public void WriteNumber(ReadOnlySpan propertyName, decimal value) { } + + public void WriteNumber(ReadOnlySpan propertyName, double value) { } + + public void WriteNumber(ReadOnlySpan propertyName, int value) { } + + public void WriteNumber(ReadOnlySpan propertyName, long value) { } + + public void WriteNumber(ReadOnlySpan propertyName, float value) { } + + [CLSCompliant(false)] + public void WriteNumber(ReadOnlySpan propertyName, uint value) { } + + [CLSCompliant(false)] + public void WriteNumber(ReadOnlySpan propertyName, ulong value) { } + + public void WriteNumber(string propertyName, decimal value) { } + + public void WriteNumber(string propertyName, double value) { } + + public void WriteNumber(string propertyName, int value) { } + + public void WriteNumber(string propertyName, long value) { } + + public void WriteNumber(string propertyName, float value) { } + + [CLSCompliant(false)] + public void WriteNumber(string propertyName, uint value) { } + + [CLSCompliant(false)] + public void WriteNumber(string propertyName, ulong value) { } + + public void WriteNumber(JsonEncodedText propertyName, decimal value) { } + + public void WriteNumber(JsonEncodedText propertyName, double value) { } + + public void WriteNumber(JsonEncodedText propertyName, int value) { } + + public void WriteNumber(JsonEncodedText propertyName, long value) { } + + public void WriteNumber(JsonEncodedText propertyName, float value) { } + + [CLSCompliant(false)] + public void WriteNumber(JsonEncodedText propertyName, uint value) { } + + [CLSCompliant(false)] + public void WriteNumber(JsonEncodedText propertyName, ulong value) { } + + public void WriteNumberValue(decimal value) { } + + public void WriteNumberValue(double value) { } + + public void WriteNumberValue(int value) { } + + public void WriteNumberValue(long value) { } + + public void WriteNumberValue(float value) { } + + [CLSCompliant(false)] + public void WriteNumberValue(uint value) { } + + [CLSCompliant(false)] + public void WriteNumberValue(ulong value) { } + + public void WritePropertyName(ReadOnlySpan utf8PropertyName) { } + + public void WritePropertyName(ReadOnlySpan propertyName) { } + + public void WritePropertyName(string propertyName) { } + + public void WritePropertyName(JsonEncodedText propertyName) { } + + public void WriteRawValue(Buffers.ReadOnlySequence utf8Json, bool skipInputValidation = false) { } + + public void WriteRawValue(ReadOnlySpan utf8Json, bool skipInputValidation = false) { } + + public void WriteRawValue(ReadOnlySpan json, bool skipInputValidation = false) { } + + public void WriteRawValue(string json, bool skipInputValidation = false) { } + + public void WriteStartArray() { } + + public void WriteStartArray(ReadOnlySpan utf8PropertyName) { } + + public void WriteStartArray(ReadOnlySpan propertyName) { } + + public void WriteStartArray(string propertyName) { } + + public void WriteStartArray(JsonEncodedText propertyName) { } + + public void WriteStartObject() { } + + public void WriteStartObject(ReadOnlySpan utf8PropertyName) { } + + public void WriteStartObject(ReadOnlySpan propertyName) { } + + public void WriteStartObject(string propertyName) { } + + public void WriteStartObject(JsonEncodedText propertyName) { } + + public void WriteString(ReadOnlySpan utf8PropertyName, DateTime value) { } + + public void WriteString(ReadOnlySpan utf8PropertyName, DateTimeOffset value) { } + + public void WriteString(ReadOnlySpan utf8PropertyName, Guid value) { } + + public void WriteString(ReadOnlySpan utf8PropertyName, ReadOnlySpan utf8Value) { } + + public void WriteString(ReadOnlySpan utf8PropertyName, ReadOnlySpan value) { } + + public void WriteString(ReadOnlySpan utf8PropertyName, string? value) { } + + public void WriteString(ReadOnlySpan utf8PropertyName, JsonEncodedText value) { } + + public void WriteString(ReadOnlySpan propertyName, DateTime value) { } + + public void WriteString(ReadOnlySpan propertyName, DateTimeOffset value) { } + + public void WriteString(ReadOnlySpan propertyName, Guid value) { } + + public void WriteString(ReadOnlySpan propertyName, ReadOnlySpan utf8Value) { } + + public void WriteString(ReadOnlySpan propertyName, ReadOnlySpan value) { } + + public void WriteString(ReadOnlySpan propertyName, string? value) { } + + public void WriteString(ReadOnlySpan propertyName, JsonEncodedText value) { } + + public void WriteString(string propertyName, DateTime value) { } + + public void WriteString(string propertyName, DateTimeOffset value) { } + + public void WriteString(string propertyName, Guid value) { } + + public void WriteString(string propertyName, ReadOnlySpan utf8Value) { } + + public void WriteString(string propertyName, ReadOnlySpan value) { } + + public void WriteString(string propertyName, string? value) { } + + public void WriteString(string propertyName, JsonEncodedText value) { } + + public void WriteString(JsonEncodedText propertyName, DateTime value) { } + + public void WriteString(JsonEncodedText propertyName, DateTimeOffset value) { } + + public void WriteString(JsonEncodedText propertyName, Guid value) { } + + public void WriteString(JsonEncodedText propertyName, ReadOnlySpan utf8Value) { } + + public void WriteString(JsonEncodedText propertyName, ReadOnlySpan value) { } + + public void WriteString(JsonEncodedText propertyName, string? value) { } + + public void WriteString(JsonEncodedText propertyName, JsonEncodedText value) { } + + public void WriteStringValue(DateTime value) { } + + public void WriteStringValue(DateTimeOffset value) { } + + public void WriteStringValue(Guid value) { } + + public void WriteStringValue(ReadOnlySpan utf8Value) { } + + public void WriteStringValue(ReadOnlySpan value) { } + + public void WriteStringValue(string? value) { } + + public void WriteStringValue(JsonEncodedText value) { } + } +} + +namespace System.Text.Json.Nodes +{ + public sealed partial class JsonArray : JsonNode, Collections.Generic.IList, Collections.Generic.ICollection, Collections.Generic.IEnumerable, Collections.IEnumerable + { + public JsonArray(JsonNodeOptions? options = null) { } + + public JsonArray(params JsonNode?[] items) { } + + public JsonArray(JsonNodeOptions options, params JsonNode?[] items) { } + + public int Count { get { throw null; } } + + bool Collections.Generic.ICollection.IsReadOnly { get { throw null; } } + + public void Add(JsonNode? item) { } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Creating JsonValue instances with non-primitive types is not compatible with trimming. It can result in non-primitive types being serialized, which may have their members trimmed.")] + public void Add(T? value) { } + + public void Clear() { } + + public bool Contains(JsonNode? item) { throw null; } + + public static JsonArray? Create(JsonElement element, JsonNodeOptions? options = null) { throw null; } + + public Collections.Generic.IEnumerator GetEnumerator() { throw null; } + + public Collections.Generic.IEnumerable GetValues() { throw null; } + + public int IndexOf(JsonNode? item) { throw null; } + + public void Insert(int index, JsonNode? item) { } + + public bool Remove(JsonNode? item) { throw null; } + + public void RemoveAt(int index) { } + + void Collections.Generic.ICollection.CopyTo(JsonNode[] array, int index) { } + + Collections.IEnumerator? Collections.IEnumerable.GetEnumerator() { throw null; } + + public override void WriteTo(Utf8JsonWriter writer, JsonSerializerOptions? options = null) { } + } + + public abstract partial class JsonNode + { + internal JsonNode() { } + + public JsonNode? this[int index] { get { throw null; } set { } } + + public JsonNode? this[string propertyName] { get { throw null; } set { } } + + public JsonNodeOptions? Options { get { throw null; } } + + public JsonNode? Parent { get { throw null; } } + + public JsonNode Root { get { throw null; } } + + public JsonArray AsArray() { throw null; } + + public JsonObject AsObject() { throw null; } + + public JsonValue AsValue() { throw null; } + + public JsonNode DeepClone() { throw null; } + + public static bool DeepEquals(JsonNode? node1, JsonNode? node2) { throw null; } + + public int GetElementIndex() { throw null; } + + public string GetPath() { throw null; } + + public string GetPropertyName() { throw null; } + + public virtual T GetValue() { throw null; } + + public JsonValueKind GetValueKind() { throw null; } + + public static explicit operator bool(JsonNode value) { throw null; } + + public static explicit operator byte(JsonNode value) { throw null; } + + public static explicit operator char(JsonNode value) { throw null; } + + public static explicit operator DateTime(JsonNode value) { throw null; } + + public static explicit operator DateTimeOffset(JsonNode value) { throw null; } + + public static explicit operator decimal(JsonNode value) { throw null; } + + public static explicit operator double(JsonNode value) { throw null; } + + public static explicit operator Guid(JsonNode value) { throw null; } + + public static explicit operator short(JsonNode value) { throw null; } + + public static explicit operator int(JsonNode value) { throw null; } + + public static explicit operator long(JsonNode value) { throw null; } + + public static explicit operator bool?(JsonNode? value) { throw null; } + + public static explicit operator byte?(JsonNode? value) { throw null; } + + public static explicit operator char?(JsonNode? value) { throw null; } + + public static explicit operator DateTime?(JsonNode? value) { throw null; } + + public static explicit operator DateTimeOffset?(JsonNode? value) { throw null; } + + public static explicit operator decimal?(JsonNode? value) { throw null; } + + public static explicit operator double?(JsonNode? value) { throw null; } + + public static explicit operator Guid?(JsonNode? value) { throw null; } + + public static explicit operator short?(JsonNode? value) { throw null; } + + public static explicit operator int?(JsonNode? value) { throw null; } + + public static explicit operator long?(JsonNode? value) { throw null; } + + [CLSCompliant(false)] + public static explicit operator sbyte?(JsonNode? value) { throw null; } + + public static explicit operator float?(JsonNode? value) { throw null; } + + [CLSCompliant(false)] + public static explicit operator ushort?(JsonNode? value) { throw null; } + + [CLSCompliant(false)] + public static explicit operator uint?(JsonNode? value) { throw null; } + + [CLSCompliant(false)] + public static explicit operator ulong?(JsonNode? value) { throw null; } + + [CLSCompliant(false)] + public static explicit operator sbyte(JsonNode value) { throw null; } + + public static explicit operator float(JsonNode value) { throw null; } + + public static explicit operator string?(JsonNode? value) { throw null; } + + [CLSCompliant(false)] + public static explicit operator ushort(JsonNode value) { throw null; } + + [CLSCompliant(false)] + public static explicit operator uint(JsonNode value) { throw null; } + + [CLSCompliant(false)] + public static explicit operator ulong(JsonNode value) { throw null; } + + public static implicit operator JsonNode(bool value) { throw null; } + + public static implicit operator JsonNode(byte value) { throw null; } + + public static implicit operator JsonNode(char value) { throw null; } + + public static implicit operator JsonNode(DateTime value) { throw null; } + + public static implicit operator JsonNode(DateTimeOffset value) { throw null; } + + public static implicit operator JsonNode(decimal value) { throw null; } + + public static implicit operator JsonNode(double value) { throw null; } + + public static implicit operator JsonNode(Guid value) { throw null; } + + public static implicit operator JsonNode(short value) { throw null; } + + public static implicit operator JsonNode(int value) { throw null; } + + public static implicit operator JsonNode(long value) { throw null; } + + public static implicit operator JsonNode?(bool? value) { throw null; } + + public static implicit operator JsonNode?(byte? value) { throw null; } + + public static implicit operator JsonNode?(char? value) { throw null; } + + public static implicit operator JsonNode?(DateTime? value) { throw null; } + + public static implicit operator JsonNode?(DateTimeOffset? value) { throw null; } + + public static implicit operator JsonNode?(decimal? value) { throw null; } + + public static implicit operator JsonNode?(double? value) { throw null; } + + public static implicit operator JsonNode?(Guid? value) { throw null; } + + public static implicit operator JsonNode?(short? value) { throw null; } + + public static implicit operator JsonNode?(int? value) { throw null; } + + public static implicit operator JsonNode?(long? value) { throw null; } + + [CLSCompliant(false)] + public static implicit operator JsonNode?(sbyte? value) { throw null; } + + public static implicit operator JsonNode?(float? value) { throw null; } + + [CLSCompliant(false)] + public static implicit operator JsonNode?(ushort? value) { throw null; } + + [CLSCompliant(false)] + public static implicit operator JsonNode?(uint? value) { throw null; } + + [CLSCompliant(false)] + public static implicit operator JsonNode?(ulong? value) { throw null; } + + [CLSCompliant(false)] + public static implicit operator JsonNode(sbyte value) { throw null; } + + public static implicit operator JsonNode(float value) { throw null; } + + public static implicit operator JsonNode?(string? value) { throw null; } + + [CLSCompliant(false)] + public static implicit operator JsonNode(ushort value) { throw null; } + + [CLSCompliant(false)] + public static implicit operator JsonNode(uint value) { throw null; } + + [CLSCompliant(false)] + public static implicit operator JsonNode(ulong value) { throw null; } + + public static JsonNode? Parse(IO.Stream utf8Json, JsonNodeOptions? nodeOptions = null, JsonDocumentOptions documentOptions = default) { throw null; } + + public static JsonNode? Parse(ReadOnlySpan utf8Json, JsonNodeOptions? nodeOptions = null, JsonDocumentOptions documentOptions = default) { throw null; } + + public static JsonNode? Parse(string json, JsonNodeOptions? nodeOptions = null, JsonDocumentOptions documentOptions = default) { throw null; } + + public static JsonNode? Parse(ref Utf8JsonReader reader, JsonNodeOptions? nodeOptions = null) { throw null; } + + public static Threading.Tasks.Task ParseAsync(IO.Stream utf8Json, JsonNodeOptions? nodeOptions = null, JsonDocumentOptions documentOptions = default, Threading.CancellationToken cancellationToken = default) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Creating JsonValue instances with non-primitive types is not compatible with trimming. It can result in non-primitive types being serialized, which may have their members trimmed.")] + public void ReplaceWith(T value) { } + + public string ToJsonString(JsonSerializerOptions? options = null) { throw null; } + + public override string ToString() { throw null; } + + public abstract void WriteTo(Utf8JsonWriter writer, JsonSerializerOptions? options = null); + } + + public partial struct JsonNodeOptions + { + private int _dummyPrimitive; + public bool PropertyNameCaseInsensitive { get { throw null; } set { } } + } + + public sealed partial class JsonObject : JsonNode, Collections.Generic.IDictionary, Collections.Generic.ICollection>, Collections.Generic.IEnumerable>, Collections.IEnumerable + { + public JsonObject(Collections.Generic.IEnumerable> properties, JsonNodeOptions? options = null) { } + + public JsonObject(JsonNodeOptions? options = null) { } + + public int Count { get { throw null; } } + + bool Collections.Generic.ICollection>.IsReadOnly { get { throw null; } } + + Collections.Generic.ICollection Collections.Generic.IDictionary.Keys { get { throw null; } } + + Collections.Generic.ICollection Collections.Generic.IDictionary.Values { get { throw null; } } + + public void Add(Collections.Generic.KeyValuePair property) { } + + public void Add(string propertyName, JsonNode? value) { } + + public void Clear() { } + + public bool ContainsKey(string propertyName) { throw null; } + + public static JsonObject? Create(JsonElement element, JsonNodeOptions? options = null) { throw null; } + + public Collections.Generic.IEnumerator> GetEnumerator() { throw null; } + + public bool Remove(string propertyName) { throw null; } + + bool Collections.Generic.ICollection>.Contains(Collections.Generic.KeyValuePair item) { throw null; } + + void Collections.Generic.ICollection>.CopyTo(Collections.Generic.KeyValuePair[] array, int index) { } + + bool Collections.Generic.ICollection>.Remove(Collections.Generic.KeyValuePair item) { throw null; } + + bool Collections.Generic.IDictionary.TryGetValue(string propertyName, out JsonNode jsonNode) { throw null; } + + Collections.IEnumerator Collections.IEnumerable.GetEnumerator() { throw null; } + + public bool TryGetPropertyValue(string propertyName, out JsonNode? jsonNode) { throw null; } + + public override void WriteTo(Utf8JsonWriter writer, JsonSerializerOptions? options = null) { } + } + + public abstract partial class JsonValue : JsonNode + { + internal JsonValue() { } + + public static JsonValue Create(bool value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue Create(byte value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue Create(char value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue Create(DateTime value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue Create(DateTimeOffset value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue Create(decimal value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue Create(double value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue Create(Guid value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue Create(short value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue Create(int value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue Create(long value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue? Create(bool? value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue? Create(byte? value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue? Create(char? value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue? Create(DateTime? value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue? Create(DateTimeOffset? value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue? Create(decimal? value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue? Create(double? value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue? Create(Guid? value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue? Create(short? value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue? Create(int? value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue? Create(long? value, JsonNodeOptions? options = null) { throw null; } + + [CLSCompliant(false)] + public static JsonValue? Create(sbyte? value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue? Create(float? value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue? Create(JsonElement? value, JsonNodeOptions? options = null) { throw null; } + + [CLSCompliant(false)] + public static JsonValue? Create(ushort? value, JsonNodeOptions? options = null) { throw null; } + + [CLSCompliant(false)] + public static JsonValue? Create(uint? value, JsonNodeOptions? options = null) { throw null; } + + [CLSCompliant(false)] + public static JsonValue? Create(ulong? value, JsonNodeOptions? options = null) { throw null; } + + [CLSCompliant(false)] + public static JsonValue Create(sbyte value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue Create(float value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue? Create(string? value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue? Create(JsonElement value, JsonNodeOptions? options = null) { throw null; } + + [CLSCompliant(false)] + public static JsonValue Create(ushort value, JsonNodeOptions? options = null) { throw null; } + + [CLSCompliant(false)] + public static JsonValue Create(uint value, JsonNodeOptions? options = null) { throw null; } + + [CLSCompliant(false)] + public static JsonValue Create(ulong value, JsonNodeOptions? options = null) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Creating JsonValue instances with non-primitive types is not compatible with trimming. It can result in non-primitive types being serialized, which may have their members trimmed. Use the overload that takes a JsonTypeInfo, or make sure all of the required types are preserved.")] + public static JsonValue? Create(T? value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue? Create(T? value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo, JsonNodeOptions? options = null) { throw null; } + + public abstract bool TryGetValue(out T? value); + } +} + +namespace System.Text.Json.Serialization +{ + public partial interface IJsonOnDeserialized + { + void OnDeserialized(); + } + + public partial interface IJsonOnDeserializing + { + void OnDeserializing(); + } + + public partial interface IJsonOnSerialized + { + void OnSerialized(); + } + + public partial interface IJsonOnSerializing + { + void OnSerializing(); + } + + public abstract partial class JsonAttribute : Attribute + { + } + + [AttributeUsage(AttributeTargets.Constructor, AllowMultiple = false)] + public sealed partial class JsonConstructorAttribute : JsonAttribute + { + } + + public abstract partial class JsonConverter + { + internal JsonConverter() { } + + public abstract Type? Type { get; } + + public abstract bool CanConvert(Type typeToConvert); + } + + [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Interface, AllowMultiple = false)] + public partial class JsonConverterAttribute : JsonAttribute + { + protected JsonConverterAttribute() { } + + public JsonConverterAttribute(Type converterType) { } + + [Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicParameterlessConstructor)] + public Type? ConverterType { get { throw null; } } + + public virtual JsonConverter? CreateConverter(Type typeToConvert) { throw null; } + } + + public abstract partial class JsonConverterFactory : JsonConverter + { + protected JsonConverterFactory() { } + + public sealed override Type? Type { get { throw null; } } + + public abstract JsonConverter? CreateConverter(Type typeToConvert, JsonSerializerOptions options); + } + + public abstract partial class JsonConverter : JsonConverter + { + protected internal JsonConverter() { } + + public virtual bool HandleNull { get { throw null; } } + + public sealed override Type Type { get { throw null; } } + + public override bool CanConvert(Type typeToConvert) { throw null; } + + public abstract T? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options); + public virtual T ReadAsPropertyName(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { throw null; } + + public abstract void Write(Utf8JsonWriter writer, T value, JsonSerializerOptions options); + public virtual void WriteAsPropertyName(Utf8JsonWriter writer, T value, JsonSerializerOptions options) { } + } + + [AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface, AllowMultiple = true, Inherited = false)] + public partial class JsonDerivedTypeAttribute : JsonAttribute + { + public JsonDerivedTypeAttribute(Type derivedType, int typeDiscriminator) { } + + public JsonDerivedTypeAttribute(Type derivedType, string typeDiscriminator) { } + + public JsonDerivedTypeAttribute(Type derivedType) { } + + public Type DerivedType { get { throw null; } } + + public object? TypeDiscriminator { get { throw null; } } + } + + [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)] + public sealed partial class JsonExtensionDataAttribute : JsonAttribute + { + } + + [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)] + public sealed partial class JsonIgnoreAttribute : JsonAttribute + { + public JsonIgnoreCondition Condition { get { throw null; } set { } } + } + + public enum JsonIgnoreCondition + { + Never = 0, + Always = 1, + WhenWritingDefault = 2, + WhenWritingNull = 3 + } + + [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)] + public sealed partial class JsonIncludeAttribute : JsonAttribute + { + } + + public enum JsonKnownNamingPolicy + { + Unspecified = 0, + CamelCase = 1, + SnakeCaseLower = 2, + SnakeCaseUpper = 3, + KebabCaseLower = 4, + KebabCaseUpper = 5 + } + + public sealed partial class JsonNumberEnumConverter : JsonConverterFactory where TEnum : struct, Enum + { + public override bool CanConvert(Type typeToConvert) { throw null; } + + public override JsonConverter? CreateConverter(Type typeToConvert, JsonSerializerOptions options) { throw null; } + } + + [Flags] + public enum JsonNumberHandling + { + Strict = 0, + AllowReadingFromString = 1, + WriteAsString = 2, + AllowNamedFloatingPointLiterals = 4 + } + + [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)] + public sealed partial class JsonNumberHandlingAttribute : JsonAttribute + { + public JsonNumberHandlingAttribute(JsonNumberHandling handling) { } + + public JsonNumberHandling Handling { get { throw null; } } + } + + public enum JsonObjectCreationHandling + { + Replace = 0, + Populate = 1 + } + + [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Interface, AllowMultiple = false)] + public sealed partial class JsonObjectCreationHandlingAttribute : JsonAttribute + { + public JsonObjectCreationHandlingAttribute(JsonObjectCreationHandling handling) { } + + public JsonObjectCreationHandling Handling { get { throw null; } } + } + + [AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface, AllowMultiple = false, Inherited = false)] + public sealed partial class JsonPolymorphicAttribute : JsonAttribute + { + public bool IgnoreUnrecognizedTypeDiscriminators { get { throw null; } set { } } + + public string? TypeDiscriminatorPropertyName { get { throw null; } set { } } + + public JsonUnknownDerivedTypeHandling UnknownDerivedTypeHandling { get { throw null; } set { } } + } + + [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)] + public sealed partial class JsonPropertyNameAttribute : JsonAttribute + { + public JsonPropertyNameAttribute(string name) { } + + public string Name { get { throw null; } } + } + + [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)] + public sealed partial class JsonPropertyOrderAttribute : JsonAttribute + { + public JsonPropertyOrderAttribute(int order) { } + + public int Order { get { throw null; } } + } + + [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)] + public sealed partial class JsonRequiredAttribute : JsonAttribute + { + } + + [AttributeUsage(AttributeTargets.Class, AllowMultiple = true)] + public sealed partial class JsonSerializableAttribute : JsonAttribute + { + public JsonSerializableAttribute(Type type) { } + + public JsonSourceGenerationMode GenerationMode { get { throw null; } set { } } + + public string? TypeInfoPropertyName { get { throw null; } set { } } + } + + public abstract partial class JsonSerializerContext : Metadata.IJsonTypeInfoResolver + { + protected JsonSerializerContext(JsonSerializerOptions? options) { } + + protected abstract JsonSerializerOptions? GeneratedSerializerOptions { get; } + + public JsonSerializerOptions Options { get { throw null; } } + + public abstract Metadata.JsonTypeInfo? GetTypeInfo(Type type); + Metadata.JsonTypeInfo Metadata.IJsonTypeInfoResolver.GetTypeInfo(Type type, JsonSerializerOptions options) { throw null; } + } + + [Flags] + public enum JsonSourceGenerationMode + { + Default = 0, + Metadata = 1, + Serialization = 2 + } + + [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)] + public sealed partial class JsonSourceGenerationOptionsAttribute : JsonAttribute + { + public JsonSourceGenerationOptionsAttribute() { } + + public JsonSourceGenerationOptionsAttribute(JsonSerializerDefaults defaults) { } + + public bool AllowTrailingCommas { get { throw null; } set { } } + + public Type[]? Converters { get { throw null; } set { } } + + public int DefaultBufferSize { get { throw null; } set { } } + + public JsonIgnoreCondition DefaultIgnoreCondition { get { throw null; } set { } } + + public JsonKnownNamingPolicy DictionaryKeyPolicy { get { throw null; } set { } } + + public JsonSourceGenerationMode GenerationMode { get { throw null; } set { } } + + public bool IgnoreReadOnlyFields { get { throw null; } set { } } + + public bool IgnoreReadOnlyProperties { get { throw null; } set { } } + + public bool IncludeFields { get { throw null; } set { } } + + public int MaxDepth { get { throw null; } set { } } + + public JsonNumberHandling NumberHandling { get { throw null; } set { } } + + public JsonObjectCreationHandling PreferredObjectCreationHandling { get { throw null; } set { } } + + public bool PropertyNameCaseInsensitive { get { throw null; } set { } } + + public JsonKnownNamingPolicy PropertyNamingPolicy { get { throw null; } set { } } + + public JsonCommentHandling ReadCommentHandling { get { throw null; } set { } } + + public JsonUnknownTypeHandling UnknownTypeHandling { get { throw null; } set { } } + + public JsonUnmappedMemberHandling UnmappedMemberHandling { get { throw null; } set { } } + + public bool UseStringEnumConverter { get { throw null; } set { } } + + public bool WriteIndented { get { throw null; } set { } } + } + + public partial class JsonStringEnumConverter : JsonConverterFactory + { + public JsonStringEnumConverter() { } + + public JsonStringEnumConverter(JsonNamingPolicy? namingPolicy = null, bool allowIntegerValues = true) { } + + public sealed override bool CanConvert(Type typeToConvert) { throw null; } + + public sealed override JsonConverter CreateConverter(Type typeToConvert, JsonSerializerOptions options) { throw null; } + } + + public partial class JsonStringEnumConverter : JsonConverterFactory where TEnum : struct, Enum + { + public JsonStringEnumConverter() { } + + public JsonStringEnumConverter(JsonNamingPolicy? namingPolicy = null, bool allowIntegerValues = true) { } + + public sealed override bool CanConvert(Type typeToConvert) { throw null; } + + public sealed override JsonConverter? CreateConverter(Type typeToConvert, JsonSerializerOptions options) { throw null; } + } + + public enum JsonUnknownDerivedTypeHandling + { + FailSerialization = 0, + FallBackToBaseType = 1, + FallBackToNearestAncestor = 2 + } + + public enum JsonUnknownTypeHandling + { + JsonElement = 0, + JsonNode = 1 + } + + public enum JsonUnmappedMemberHandling + { + Skip = 0, + Disallow = 1 + } + + [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Interface, AllowMultiple = false, Inherited = false)] + public partial class JsonUnmappedMemberHandlingAttribute : JsonAttribute + { + public JsonUnmappedMemberHandlingAttribute(JsonUnmappedMemberHandling unmappedMemberHandling) { } + + public JsonUnmappedMemberHandling UnmappedMemberHandling { get { throw null; } } + } + + public abstract partial class ReferenceHandler + { + public static ReferenceHandler IgnoreCycles { get { throw null; } } + + public static ReferenceHandler Preserve { get { throw null; } } + + public abstract ReferenceResolver CreateResolver(); + } + + public sealed partial class ReferenceHandler : ReferenceHandler where T : ReferenceResolver, new() + { + public override ReferenceResolver CreateResolver() { throw null; } + } + + public abstract partial class ReferenceResolver + { + public abstract void AddReference(string referenceId, object value); + public abstract string GetReference(object value, out bool alreadyExists); + public abstract object ResolveReference(string referenceId); + } +} + +namespace System.Text.Json.Serialization.Metadata +{ + public partial class DefaultJsonTypeInfoResolver : IJsonTypeInfoResolver + { + public Collections.Generic.IList> Modifiers { get { throw null; } } + + [Diagnostics.CodeAnalysis.UnconditionalSuppressMessage("ReflectionAnalysis", "IL2026:RequiresUnreferencedCode", Justification = "The ctor is marked RequiresUnreferencedCode.")] + [Diagnostics.CodeAnalysis.UnconditionalSuppressMessage("AotAnalysis", "IL3050:RequiresDynamicCode", Justification = "The ctor is marked RequiresDynamicCode.")] + public virtual JsonTypeInfo GetTypeInfo(Type type, JsonSerializerOptions options) { throw null; } + } + + public partial interface IJsonTypeInfoResolver + { + JsonTypeInfo? GetTypeInfo(Type type, JsonSerializerOptions options); + } + + public sealed partial class JsonCollectionInfoValues + { + public JsonTypeInfo ElementInfo { get { throw null; } init { } } + + public JsonTypeInfo? KeyInfo { get { throw null; } init { } } + + public JsonNumberHandling NumberHandling { get { throw null; } init { } } + + public Func? ObjectCreator { get { throw null; } init { } } + + public Action? SerializeHandler { get { throw null; } init { } } + } + + public readonly partial struct JsonDerivedType + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public JsonDerivedType(Type derivedType, int typeDiscriminator) { } + + public JsonDerivedType(Type derivedType, string typeDiscriminator) { } + + public JsonDerivedType(Type derivedType) { } + + public Type DerivedType { get { throw null; } } + + public object? TypeDiscriminator { get { throw null; } } + } + + public static partial class JsonMetadataServices + { + public static JsonConverter BooleanConverter { get { throw null; } } + + public static JsonConverter ByteArrayConverter { get { throw null; } } + + public static JsonConverter ByteConverter { get { throw null; } } + + public static JsonConverter CharConverter { get { throw null; } } + + public static JsonConverter DateOnlyConverter { get { throw null; } } + + public static JsonConverter DateTimeConverter { get { throw null; } } + + public static JsonConverter DateTimeOffsetConverter { get { throw null; } } + + public static JsonConverter DecimalConverter { get { throw null; } } + + public static JsonConverter DoubleConverter { get { throw null; } } + + public static JsonConverter GuidConverter { get { throw null; } } + + public static JsonConverter HalfConverter { get { throw null; } } + + public static JsonConverter Int16Converter { get { throw null; } } + + public static JsonConverter Int32Converter { get { throw null; } } + + public static JsonConverter Int64Converter { get { throw null; } } + + public static JsonConverter JsonArrayConverter { get { throw null; } } + + public static JsonConverter JsonDocumentConverter { get { throw null; } } + + public static JsonConverter JsonElementConverter { get { throw null; } } + + public static JsonConverter JsonNodeConverter { get { throw null; } } + + public static JsonConverter JsonObjectConverter { get { throw null; } } + + public static JsonConverter JsonValueConverter { get { throw null; } } + + public static JsonConverter> MemoryByteConverter { get { throw null; } } + + public static JsonConverter ObjectConverter { get { throw null; } } + + public static JsonConverter> ReadOnlyMemoryByteConverter { get { throw null; } } + + [CLSCompliant(false)] + public static JsonConverter SByteConverter { get { throw null; } } + + public static JsonConverter SingleConverter { get { throw null; } } + + public static JsonConverter StringConverter { get { throw null; } } + + public static JsonConverter TimeOnlyConverter { get { throw null; } } + + public static JsonConverter TimeSpanConverter { get { throw null; } } + + [CLSCompliant(false)] + public static JsonConverter UInt16Converter { get { throw null; } } + + [CLSCompliant(false)] + public static JsonConverter UInt32Converter { get { throw null; } } + + [CLSCompliant(false)] + public static JsonConverter UInt64Converter { get { throw null; } } + + public static JsonConverter UriConverter { get { throw null; } } + + public static JsonConverter VersionConverter { get { throw null; } } + + public static JsonTypeInfo CreateArrayInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) { throw null; } + + public static JsonTypeInfo CreateConcurrentQueueInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) + where TCollection : Collections.Concurrent.ConcurrentQueue { throw null; } + + public static JsonTypeInfo CreateConcurrentStackInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) + where TCollection : Collections.Concurrent.ConcurrentStack { throw null; } + + public static JsonTypeInfo CreateDictionaryInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) + where TCollection : Collections.Generic.Dictionary { throw null; } + + public static JsonTypeInfo CreateIAsyncEnumerableInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) + where TCollection : Collections.Generic.IAsyncEnumerable { throw null; } + + public static JsonTypeInfo CreateICollectionInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) + where TCollection : Collections.Generic.ICollection { throw null; } + + public static JsonTypeInfo CreateIDictionaryInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) + where TCollection : Collections.IDictionary { throw null; } + + public static JsonTypeInfo CreateIDictionaryInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) + where TCollection : Collections.Generic.IDictionary { throw null; } + + public static JsonTypeInfo CreateIEnumerableInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) + where TCollection : Collections.IEnumerable { throw null; } + + public static JsonTypeInfo CreateIEnumerableInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) + where TCollection : Collections.Generic.IEnumerable { throw null; } + + public static JsonTypeInfo CreateIListInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) + where TCollection : Collections.IList { throw null; } + + public static JsonTypeInfo CreateIListInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) + where TCollection : Collections.Generic.IList { throw null; } + + public static JsonTypeInfo CreateImmutableDictionaryInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo, Func>, TCollection> createRangeFunc) + where TCollection : Collections.Generic.IReadOnlyDictionary { throw null; } + + public static JsonTypeInfo CreateImmutableEnumerableInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo, Func, TCollection> createRangeFunc) + where TCollection : Collections.Generic.IEnumerable { throw null; } + + public static JsonTypeInfo CreateIReadOnlyDictionaryInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) + where TCollection : Collections.Generic.IReadOnlyDictionary { throw null; } + + public static JsonTypeInfo CreateISetInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) + where TCollection : Collections.Generic.ISet { throw null; } + + public static JsonTypeInfo CreateListInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) + where TCollection : Collections.Generic.List { throw null; } + + public static JsonTypeInfo> CreateMemoryInfo(JsonSerializerOptions options, JsonCollectionInfoValues> collectionInfo) { throw null; } + + public static JsonTypeInfo CreateObjectInfo(JsonSerializerOptions options, JsonObjectInfoValues objectInfo) { throw null; } + + public static JsonPropertyInfo CreatePropertyInfo(JsonSerializerOptions options, JsonPropertyInfoValues propertyInfo) { throw null; } + + public static JsonTypeInfo CreateQueueInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo, Action addFunc) + where TCollection : Collections.IEnumerable { throw null; } + + public static JsonTypeInfo CreateQueueInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) + where TCollection : Collections.Generic.Queue { throw null; } + + public static JsonTypeInfo> CreateReadOnlyMemoryInfo(JsonSerializerOptions options, JsonCollectionInfoValues> collectionInfo) { throw null; } + + public static JsonTypeInfo CreateStackInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo, Action addFunc) + where TCollection : Collections.IEnumerable { throw null; } + + public static JsonTypeInfo CreateStackInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) + where TCollection : Collections.Generic.Stack { throw null; } + + public static JsonTypeInfo CreateValueInfo(JsonSerializerOptions options, JsonConverter converter) { throw null; } + + public static JsonConverter GetEnumConverter(JsonSerializerOptions options) + where T : struct, Enum { throw null; } + + public static JsonConverter GetNullableConverter(JsonSerializerOptions options) + where T : struct { throw null; } + + public static JsonConverter GetNullableConverter(JsonTypeInfo underlyingTypeInfo) + where T : struct { throw null; } + + public static JsonConverter GetUnsupportedTypeConverter() { throw null; } + } + + public sealed partial class JsonObjectInfoValues + { + public Func? ConstructorParameterMetadataInitializer { get { throw null; } init { } } + + public JsonNumberHandling NumberHandling { get { throw null; } init { } } + + public Func? ObjectCreator { get { throw null; } init { } } + + public Func? ObjectWithParameterizedConstructorCreator { get { throw null; } init { } } + + public Func? PropertyMetadataInitializer { get { throw null; } init { } } + + public Action? SerializeHandler { get { throw null; } init { } } + } + + public sealed partial class JsonParameterInfoValues + { + public object? DefaultValue { get { throw null; } init { } } + + public bool HasDefaultValue { get { throw null; } init { } } + + public string Name { get { throw null; } init { } } + + public Type ParameterType { get { throw null; } init { } } + + public int Position { get { throw null; } init { } } + } + + public partial class JsonPolymorphismOptions + { + public Collections.Generic.IList DerivedTypes { get { throw null; } } + + public bool IgnoreUnrecognizedTypeDiscriminators { get { throw null; } set { } } + + public string TypeDiscriminatorPropertyName { get { throw null; } set { } } + + public JsonUnknownDerivedTypeHandling UnknownDerivedTypeHandling { get { throw null; } set { } } + } + + public abstract partial class JsonPropertyInfo + { + internal JsonPropertyInfo() { } + + public System.Reflection.ICustomAttributeProvider? AttributeProvider { get { throw null; } set { } } + + public JsonConverter? CustomConverter { get { throw null; } set { } } + + public Func? Get { get { throw null; } set { } } + + public bool IsExtensionData { get { throw null; } set { } } + + public bool IsRequired { get { throw null; } set { } } + + public string Name { get { throw null; } set { } } + + public JsonNumberHandling? NumberHandling { get { throw null; } set { } } + + public JsonObjectCreationHandling? ObjectCreationHandling { get { throw null; } set { } } + + public JsonSerializerOptions Options { get { throw null; } } + + public int Order { get { throw null; } set { } } + + public Type PropertyType { get { throw null; } } + + public Action? Set { get { throw null; } set { } } + + public Func? ShouldSerialize { get { throw null; } set { } } + } + + public sealed partial class JsonPropertyInfoValues + { + public JsonConverter? Converter { get { throw null; } init { } } + + public Type DeclaringType { get { throw null; } init { } } + + public Func? Getter { get { throw null; } init { } } + + public bool HasJsonInclude { get { throw null; } init { } } + + public JsonIgnoreCondition? IgnoreCondition { get { throw null; } init { } } + + public bool IsExtensionData { get { throw null; } init { } } + + public bool IsProperty { get { throw null; } init { } } + + public bool IsPublic { get { throw null; } init { } } + + public bool IsVirtual { get { throw null; } init { } } + + public string? JsonPropertyName { get { throw null; } init { } } + + public JsonNumberHandling? NumberHandling { get { throw null; } init { } } + + public string PropertyName { get { throw null; } init { } } + + public JsonTypeInfo PropertyTypeInfo { get { throw null; } init { } } + + public Action? Setter { get { throw null; } init { } } + } + + public abstract partial class JsonTypeInfo + { + internal JsonTypeInfo() { } + + public JsonConverter Converter { get { throw null; } } + + public Func? CreateObject { get { throw null; } set { } } + + public bool IsReadOnly { get { throw null; } } + + public JsonTypeInfoKind Kind { get { throw null; } } + + public JsonNumberHandling? NumberHandling { get { throw null; } set { } } + + public Action? OnDeserialized { get { throw null; } set { } } + + public Action? OnDeserializing { get { throw null; } set { } } + + public Action? OnSerialized { get { throw null; } set { } } + + public Action? OnSerializing { get { throw null; } set { } } + + public JsonSerializerOptions Options { get { throw null; } } + + public IJsonTypeInfoResolver? OriginatingResolver { get { throw null; } set { } } + + public JsonPolymorphismOptions? PolymorphismOptions { get { throw null; } set { } } + + public JsonObjectCreationHandling? PreferredPropertyObjectCreationHandling { get { throw null; } set { } } + + public Collections.Generic.IList Properties { get { throw null; } } + + public Type Type { get { throw null; } } + + public JsonUnmappedMemberHandling? UnmappedMemberHandling { get { throw null; } set { } } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public JsonPropertyInfo CreateJsonPropertyInfo(Type propertyType, string name) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static JsonTypeInfo CreateJsonTypeInfo(Type type, JsonSerializerOptions options) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static JsonTypeInfo CreateJsonTypeInfo(JsonSerializerOptions options) { throw null; } + + public void MakeReadOnly() { } + } + + public enum JsonTypeInfoKind + { + None = 0, + Object = 1, + Enumerable = 2, + Dictionary = 3 + } + + public static partial class JsonTypeInfoResolver + { + public static IJsonTypeInfoResolver Combine(params IJsonTypeInfoResolver?[] resolvers) { throw null; } + + public static IJsonTypeInfoResolver WithAddedModifier(this IJsonTypeInfoResolver resolver, Action modifier) { throw null; } + } + + public sealed partial class JsonTypeInfo : JsonTypeInfo + { + internal JsonTypeInfo() { } + + public new Func? CreateObject { get { throw null; } set { } } + + public Action? SerializeHandler { get { throw null; } } + } +} \ No newline at end of file diff --git a/src/referencePackages/src/system.text.json/8.0.3/lib/net7.0/System.Text.Json.cs b/src/referencePackages/src/system.text.json/8.0.3/lib/net7.0/System.Text.Json.cs new file mode 100644 index 0000000000..e2c9f03e95 --- /dev/null +++ b/src/referencePackages/src/system.text.json/8.0.3/lib/net7.0/System.Text.Json.cs @@ -0,0 +1,2199 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. +// ------------------------------------------------------------------------------ +// Changes to this file must follow the http://aka.ms/api-review process. +// ------------------------------------------------------------------------------ +[assembly: System.Runtime.CompilerServices.CompilationRelaxations(8)] +[assembly: System.Runtime.CompilerServices.RuntimeCompatibility(WrapNonExceptionThrows = true)] +[assembly: System.Diagnostics.Debuggable(System.Diagnostics.DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] +[assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v7.0", FrameworkDisplayName = ".NET 7.0")] +[assembly: System.Reflection.AssemblyMetadata("Serviceable", "True")] +[assembly: System.Reflection.AssemblyMetadata("PreferInbox", "True")] +[assembly: System.Reflection.AssemblyDefaultAlias("System.Text.Json")] +[assembly: System.Resources.NeutralResourcesLanguage("en-US")] +[assembly: System.CLSCompliant(true)] +[assembly: System.Reflection.AssemblyMetadata("IsTrimmable", "True")] +[assembly: System.Runtime.InteropServices.DefaultDllImportSearchPaths(System.Runtime.InteropServices.DllImportSearchPath.AssemblyDirectory | System.Runtime.InteropServices.DllImportSearchPath.System32)] +[assembly: System.Reflection.AssemblyCompany("Microsoft Corporation")] +[assembly: System.Reflection.AssemblyCopyright("© Microsoft Corporation. All rights reserved.")] +[assembly: System.Reflection.AssemblyDescription("Provides high-performance and low-allocating types that serialize objects to JavaScript Object Notation (JSON) text and deserialize JSON text to objects, with UTF-8 support built-in. Also provides types to read and write JSON text encoded as UTF-8, and to create an in-memory document object model (DOM), that is read-only, for random access of the JSON elements within a structured view of the data.\r\n\r\nThe System.Text.Json library is built-in as part of the shared framework in .NET Runtime. The package can be installed when you need to use it in other target frameworks.")] +[assembly: System.Reflection.AssemblyFileVersion("8.0.324.11423")] +[assembly: System.Reflection.AssemblyInformationalVersion("8.0.3+9f4b1f5d664afdfc80e1508ab7ed099dff210fbd")] +[assembly: System.Reflection.AssemblyProduct("Microsoft® .NET")] +[assembly: System.Reflection.AssemblyTitle("System.Text.Json")] +[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/dotnet/runtime")] +[assembly: System.Reflection.AssemblyVersionAttribute("8.0.0.0")] +[assembly: System.Runtime.CompilerServices.ReferenceAssembly] +[assembly: System.Reflection.AssemblyFlagsAttribute((System.Reflection.AssemblyNameFlags)0x70)] +[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.CompilerServices.IsExternalInit))] +namespace System.Text.Json +{ + public enum JsonCommentHandling : byte + { + Disallow = 0, + Skip = 1, + Allow = 2 + } + + public sealed partial class JsonDocument : IDisposable + { + internal JsonDocument() { } + + public JsonElement RootElement { get { throw null; } } + + public void Dispose() { } + + public static JsonDocument Parse(Buffers.ReadOnlySequence utf8Json, JsonDocumentOptions options = default) { throw null; } + + public static JsonDocument Parse(IO.Stream utf8Json, JsonDocumentOptions options = default) { throw null; } + + public static JsonDocument Parse(ReadOnlyMemory utf8Json, JsonDocumentOptions options = default) { throw null; } + + public static JsonDocument Parse(ReadOnlyMemory json, JsonDocumentOptions options = default) { throw null; } + + public static JsonDocument Parse(string json, JsonDocumentOptions options = default) { throw null; } + + public static Threading.Tasks.Task ParseAsync(IO.Stream utf8Json, JsonDocumentOptions options = default, Threading.CancellationToken cancellationToken = default) { throw null; } + + public static JsonDocument ParseValue(ref Utf8JsonReader reader) { throw null; } + + public static bool TryParseValue(ref Utf8JsonReader reader, out JsonDocument? document) { throw null; } + + public void WriteTo(Utf8JsonWriter writer) { } + } + + public partial struct JsonDocumentOptions + { + private int _dummyPrimitive; + public bool AllowTrailingCommas { get { throw null; } set { } } + + public JsonCommentHandling CommentHandling { get { throw null; } set { } } + + public int MaxDepth { get { throw null; } set { } } + } + + public readonly partial struct JsonElement + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public JsonElement this[int index] { get { throw null; } } + + public JsonValueKind ValueKind { get { throw null; } } + + public readonly JsonElement Clone() { throw null; } + + public readonly ArrayEnumerator EnumerateArray() { throw null; } + + public readonly ObjectEnumerator EnumerateObject() { throw null; } + + public readonly int GetArrayLength() { throw null; } + + public readonly bool GetBoolean() { throw null; } + + public readonly byte GetByte() { throw null; } + + public readonly byte[] GetBytesFromBase64() { throw null; } + + public readonly DateTime GetDateTime() { throw null; } + + public readonly DateTimeOffset GetDateTimeOffset() { throw null; } + + public readonly decimal GetDecimal() { throw null; } + + public readonly double GetDouble() { throw null; } + + public readonly Guid GetGuid() { throw null; } + + public readonly short GetInt16() { throw null; } + + public readonly int GetInt32() { throw null; } + + public readonly long GetInt64() { throw null; } + + public readonly JsonElement GetProperty(ReadOnlySpan utf8PropertyName) { throw null; } + + public readonly JsonElement GetProperty(ReadOnlySpan propertyName) { throw null; } + + public readonly JsonElement GetProperty(string propertyName) { throw null; } + + public readonly string GetRawText() { throw null; } + + [CLSCompliant(false)] + public readonly sbyte GetSByte() { throw null; } + + public readonly float GetSingle() { throw null; } + + public readonly string? GetString() { throw null; } + + [CLSCompliant(false)] + public readonly ushort GetUInt16() { throw null; } + + [CLSCompliant(false)] + public readonly uint GetUInt32() { throw null; } + + [CLSCompliant(false)] + public readonly ulong GetUInt64() { throw null; } + + public static JsonElement ParseValue(ref Utf8JsonReader reader) { throw null; } + + public override readonly string ToString() { throw null; } + + public readonly bool TryGetByte(out byte value) { throw null; } + + public readonly bool TryGetBytesFromBase64(out byte[]? value) { throw null; } + + public readonly bool TryGetDateTime(out DateTime value) { throw null; } + + public readonly bool TryGetDateTimeOffset(out DateTimeOffset value) { throw null; } + + public readonly bool TryGetDecimal(out decimal value) { throw null; } + + public readonly bool TryGetDouble(out double value) { throw null; } + + public readonly bool TryGetGuid(out Guid value) { throw null; } + + public readonly bool TryGetInt16(out short value) { throw null; } + + public readonly bool TryGetInt32(out int value) { throw null; } + + public readonly bool TryGetInt64(out long value) { throw null; } + + public readonly bool TryGetProperty(ReadOnlySpan utf8PropertyName, out JsonElement value) { throw null; } + + public readonly bool TryGetProperty(ReadOnlySpan propertyName, out JsonElement value) { throw null; } + + public readonly bool TryGetProperty(string propertyName, out JsonElement value) { throw null; } + + [CLSCompliant(false)] + public readonly bool TryGetSByte(out sbyte value) { throw null; } + + public readonly bool TryGetSingle(out float value) { throw null; } + + [CLSCompliant(false)] + public readonly bool TryGetUInt16(out ushort value) { throw null; } + + [CLSCompliant(false)] + public readonly bool TryGetUInt32(out uint value) { throw null; } + + [CLSCompliant(false)] + public readonly bool TryGetUInt64(out ulong value) { throw null; } + + public static bool TryParseValue(ref Utf8JsonReader reader, out JsonElement? element) { throw null; } + + public readonly bool ValueEquals(ReadOnlySpan utf8Text) { throw null; } + + public readonly bool ValueEquals(ReadOnlySpan text) { throw null; } + + public readonly bool ValueEquals(string? text) { throw null; } + + public readonly void WriteTo(Utf8JsonWriter writer) { } + + public partial struct ArrayEnumerator : Collections.Generic.IEnumerable, Collections.IEnumerable, Collections.Generic.IEnumerator, Collections.IEnumerator, IDisposable + { + private int _dummyPrimitive; + public JsonElement Current { get { throw null; } } + + object Collections.IEnumerator.Current { get { throw null; } } + + public void Dispose() { } + + public ArrayEnumerator GetEnumerator() { throw null; } + + public bool MoveNext() { throw null; } + + public void Reset() { } + + Collections.Generic.IEnumerator Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + + Collections.IEnumerator Collections.IEnumerable.GetEnumerator() { throw null; } + } + + public partial struct ObjectEnumerator : Collections.Generic.IEnumerable, Collections.IEnumerable, Collections.Generic.IEnumerator, Collections.IEnumerator, IDisposable + { + private int _dummyPrimitive; + public JsonProperty Current { get { throw null; } } + + object Collections.IEnumerator.Current { get { throw null; } } + + public void Dispose() { } + + public ObjectEnumerator GetEnumerator() { throw null; } + + public bool MoveNext() { throw null; } + + public void Reset() { } + + Collections.Generic.IEnumerator Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + + Collections.IEnumerator Collections.IEnumerable.GetEnumerator() { throw null; } + } + } + + public readonly partial struct JsonEncodedText : IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ReadOnlySpan EncodedUtf8Bytes { get { throw null; } } + + public string Value { get { throw null; } } + + public static JsonEncodedText Encode(ReadOnlySpan utf8Value, Encodings.Web.JavaScriptEncoder? encoder = null) { throw null; } + + public static JsonEncodedText Encode(ReadOnlySpan value, Encodings.Web.JavaScriptEncoder? encoder = null) { throw null; } + + public static JsonEncodedText Encode(string value, Encodings.Web.JavaScriptEncoder? encoder = null) { throw null; } + + public override readonly bool Equals(object? obj) { throw null; } + + public readonly bool Equals(JsonEncodedText other) { throw null; } + + public override readonly int GetHashCode() { throw null; } + + public override readonly string ToString() { throw null; } + } + + public partial class JsonException : Exception + { + public JsonException() { } + + protected JsonException(Runtime.Serialization.SerializationInfo info, Runtime.Serialization.StreamingContext context) { } + + public JsonException(string? message, Exception? innerException) { } + + public JsonException(string? message, string? path, long? lineNumber, long? bytePositionInLine, Exception? innerException) { } + + public JsonException(string? message, string? path, long? lineNumber, long? bytePositionInLine) { } + + public JsonException(string? message) { } + + public long? BytePositionInLine { get { throw null; } } + + public long? LineNumber { get { throw null; } } + + public override string Message { get { throw null; } } + + public string? Path { get { throw null; } } + + public override void GetObjectData(Runtime.Serialization.SerializationInfo info, Runtime.Serialization.StreamingContext context) { } + } + + public abstract partial class JsonNamingPolicy + { + public static JsonNamingPolicy CamelCase { get { throw null; } } + + public static JsonNamingPolicy KebabCaseLower { get { throw null; } } + + public static JsonNamingPolicy KebabCaseUpper { get { throw null; } } + + public static JsonNamingPolicy SnakeCaseLower { get { throw null; } } + + public static JsonNamingPolicy SnakeCaseUpper { get { throw null; } } + + public abstract string ConvertName(string name); + } + + public readonly partial struct JsonProperty + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public string Name { get { throw null; } } + + public JsonElement Value { get { throw null; } } + + public readonly bool NameEquals(ReadOnlySpan utf8Text) { throw null; } + + public readonly bool NameEquals(ReadOnlySpan text) { throw null; } + + public readonly bool NameEquals(string? text) { throw null; } + + public override readonly string ToString() { throw null; } + + public readonly void WriteTo(Utf8JsonWriter writer) { } + } + + public partial struct JsonReaderOptions + { + private int _dummyPrimitive; + public bool AllowTrailingCommas { get { throw null; } set { } } + + public JsonCommentHandling CommentHandling { get { throw null; } set { } } + + public int MaxDepth { get { throw null; } set { } } + } + + public partial struct JsonReaderState + { + private int _dummyPrimitive; + public JsonReaderState(JsonReaderOptions options = default) { } + + public JsonReaderOptions Options { get { throw null; } } + } + + public static partial class JsonSerializer + { + public static bool IsReflectionEnabledByDefault { get { throw null; } } + + public static object? Deserialize(IO.Stream utf8Json, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static object? Deserialize(IO.Stream utf8Json, Type returnType, JsonSerializerOptions? options = null) { throw null; } + + public static object? Deserialize(IO.Stream utf8Json, Type returnType, Serialization.JsonSerializerContext context) { throw null; } + + public static object? Deserialize(ReadOnlySpan utf8Json, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static object? Deserialize(ReadOnlySpan utf8Json, Type returnType, JsonSerializerOptions? options = null) { throw null; } + + public static object? Deserialize(ReadOnlySpan utf8Json, Type returnType, Serialization.JsonSerializerContext context) { throw null; } + + public static object? Deserialize(ReadOnlySpan json, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static object? Deserialize(ReadOnlySpan json, Type returnType, JsonSerializerOptions? options = null) { throw null; } + + public static object? Deserialize(ReadOnlySpan json, Type returnType, Serialization.JsonSerializerContext context) { throw null; } + + public static object? Deserialize(string json, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static object? Deserialize(string json, Type returnType, JsonSerializerOptions? options = null) { throw null; } + + public static object? Deserialize(string json, Type returnType, Serialization.JsonSerializerContext context) { throw null; } + + public static object? Deserialize(this JsonDocument document, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static object? Deserialize(this JsonDocument document, Type returnType, JsonSerializerOptions? options = null) { throw null; } + + public static object? Deserialize(this JsonDocument document, Type returnType, Serialization.JsonSerializerContext context) { throw null; } + + public static object? Deserialize(this JsonElement element, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static object? Deserialize(this JsonElement element, Type returnType, JsonSerializerOptions? options = null) { throw null; } + + public static object? Deserialize(this JsonElement element, Type returnType, Serialization.JsonSerializerContext context) { throw null; } + + public static object? Deserialize(this Nodes.JsonNode? node, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static object? Deserialize(this Nodes.JsonNode? node, Type returnType, JsonSerializerOptions? options = null) { throw null; } + + public static object? Deserialize(this Nodes.JsonNode? node, Type returnType, Serialization.JsonSerializerContext context) { throw null; } + + public static object? Deserialize(ref Utf8JsonReader reader, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static object? Deserialize(ref Utf8JsonReader reader, Type returnType, JsonSerializerOptions? options = null) { throw null; } + + public static object? Deserialize(ref Utf8JsonReader reader, Type returnType, Serialization.JsonSerializerContext context) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static TValue? Deserialize(IO.Stream utf8Json, JsonSerializerOptions? options = null) { throw null; } + + public static TValue? Deserialize(IO.Stream utf8Json, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static TValue? Deserialize(ReadOnlySpan utf8Json, JsonSerializerOptions? options = null) { throw null; } + + public static TValue? Deserialize(ReadOnlySpan utf8Json, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static TValue? Deserialize(ReadOnlySpan json, JsonSerializerOptions? options = null) { throw null; } + + public static TValue? Deserialize(ReadOnlySpan json, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static TValue? Deserialize(string json, JsonSerializerOptions? options = null) { throw null; } + + public static TValue? Deserialize(string json, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static TValue? Deserialize(this JsonDocument document, JsonSerializerOptions? options = null) { throw null; } + + public static TValue? Deserialize(this JsonDocument document, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static TValue? Deserialize(this JsonElement element, JsonSerializerOptions? options = null) { throw null; } + + public static TValue? Deserialize(this JsonElement element, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static TValue? Deserialize(this Nodes.JsonNode? node, JsonSerializerOptions? options = null) { throw null; } + + public static TValue? Deserialize(this Nodes.JsonNode? node, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static TValue? Deserialize(ref Utf8JsonReader reader, JsonSerializerOptions? options = null) { throw null; } + + public static TValue? Deserialize(ref Utf8JsonReader reader, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + public static Threading.Tasks.ValueTask DeserializeAsync(IO.Stream utf8Json, Serialization.Metadata.JsonTypeInfo jsonTypeInfo, Threading.CancellationToken cancellationToken = default) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static Threading.Tasks.ValueTask DeserializeAsync(IO.Stream utf8Json, Type returnType, JsonSerializerOptions? options = null, Threading.CancellationToken cancellationToken = default) { throw null; } + + public static Threading.Tasks.ValueTask DeserializeAsync(IO.Stream utf8Json, Type returnType, Serialization.JsonSerializerContext context, Threading.CancellationToken cancellationToken = default) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static Threading.Tasks.ValueTask DeserializeAsync(IO.Stream utf8Json, JsonSerializerOptions? options = null, Threading.CancellationToken cancellationToken = default) { throw null; } + + public static Threading.Tasks.ValueTask DeserializeAsync(IO.Stream utf8Json, Serialization.Metadata.JsonTypeInfo jsonTypeInfo, Threading.CancellationToken cancellationToken = default) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static Collections.Generic.IAsyncEnumerable DeserializeAsyncEnumerable(IO.Stream utf8Json, JsonSerializerOptions? options = null, Threading.CancellationToken cancellationToken = default) { throw null; } + + public static Collections.Generic.IAsyncEnumerable DeserializeAsyncEnumerable(IO.Stream utf8Json, Serialization.Metadata.JsonTypeInfo jsonTypeInfo, Threading.CancellationToken cancellationToken = default) { throw null; } + + public static void Serialize(IO.Stream utf8Json, object? value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static void Serialize(IO.Stream utf8Json, object? value, Type inputType, JsonSerializerOptions? options = null) { } + + public static void Serialize(IO.Stream utf8Json, object? value, Type inputType, Serialization.JsonSerializerContext context) { } + + public static string Serialize(object? value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static string Serialize(object? value, Type inputType, JsonSerializerOptions? options = null) { throw null; } + + public static string Serialize(object? value, Type inputType, Serialization.JsonSerializerContext context) { throw null; } + + public static void Serialize(Utf8JsonWriter writer, object? value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static void Serialize(Utf8JsonWriter writer, object? value, Type inputType, JsonSerializerOptions? options = null) { } + + public static void Serialize(Utf8JsonWriter writer, object? value, Type inputType, Serialization.JsonSerializerContext context) { } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static string Serialize(TValue value, JsonSerializerOptions? options = null) { throw null; } + + public static string Serialize(TValue value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static void Serialize(IO.Stream utf8Json, TValue value, JsonSerializerOptions? options = null) { } + + public static void Serialize(IO.Stream utf8Json, TValue value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static void Serialize(Utf8JsonWriter writer, TValue value, JsonSerializerOptions? options = null) { } + + public static void Serialize(Utf8JsonWriter writer, TValue value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { } + + public static Threading.Tasks.Task SerializeAsync(IO.Stream utf8Json, object? value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo, Threading.CancellationToken cancellationToken = default) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static Threading.Tasks.Task SerializeAsync(IO.Stream utf8Json, object? value, Type inputType, JsonSerializerOptions? options = null, Threading.CancellationToken cancellationToken = default) { throw null; } + + public static Threading.Tasks.Task SerializeAsync(IO.Stream utf8Json, object? value, Type inputType, Serialization.JsonSerializerContext context, Threading.CancellationToken cancellationToken = default) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static Threading.Tasks.Task SerializeAsync(IO.Stream utf8Json, TValue value, JsonSerializerOptions? options = null, Threading.CancellationToken cancellationToken = default) { throw null; } + + public static Threading.Tasks.Task SerializeAsync(IO.Stream utf8Json, TValue value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo, Threading.CancellationToken cancellationToken = default) { throw null; } + + public static JsonDocument SerializeToDocument(object? value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static JsonDocument SerializeToDocument(object? value, Type inputType, JsonSerializerOptions? options = null) { throw null; } + + public static JsonDocument SerializeToDocument(object? value, Type inputType, Serialization.JsonSerializerContext context) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static JsonDocument SerializeToDocument(TValue value, JsonSerializerOptions? options = null) { throw null; } + + public static JsonDocument SerializeToDocument(TValue value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + public static JsonElement SerializeToElement(object? value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static JsonElement SerializeToElement(object? value, Type inputType, JsonSerializerOptions? options = null) { throw null; } + + public static JsonElement SerializeToElement(object? value, Type inputType, Serialization.JsonSerializerContext context) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static JsonElement SerializeToElement(TValue value, JsonSerializerOptions? options = null) { throw null; } + + public static JsonElement SerializeToElement(TValue value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + public static Nodes.JsonNode? SerializeToNode(object? value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static Nodes.JsonNode? SerializeToNode(object? value, Type inputType, JsonSerializerOptions? options = null) { throw null; } + + public static Nodes.JsonNode? SerializeToNode(object? value, Type inputType, Serialization.JsonSerializerContext context) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static Nodes.JsonNode? SerializeToNode(TValue value, JsonSerializerOptions? options = null) { throw null; } + + public static Nodes.JsonNode? SerializeToNode(TValue value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + public static byte[] SerializeToUtf8Bytes(object? value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static byte[] SerializeToUtf8Bytes(object? value, Type inputType, JsonSerializerOptions? options = null) { throw null; } + + public static byte[] SerializeToUtf8Bytes(object? value, Type inputType, Serialization.JsonSerializerContext context) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static byte[] SerializeToUtf8Bytes(TValue value, JsonSerializerOptions? options = null) { throw null; } + + public static byte[] SerializeToUtf8Bytes(TValue value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + } + + public enum JsonSerializerDefaults + { + General = 0, + Web = 1 + } + + public sealed partial class JsonSerializerOptions + { + public JsonSerializerOptions() { } + + public JsonSerializerOptions(JsonSerializerDefaults defaults) { } + + public JsonSerializerOptions(JsonSerializerOptions options) { } + + public bool AllowTrailingCommas { get { throw null; } set { } } + + public Collections.Generic.IList Converters { get { throw null; } } + + public static JsonSerializerOptions Default { get { throw null; } } + + public int DefaultBufferSize { get { throw null; } set { } } + + public Serialization.JsonIgnoreCondition DefaultIgnoreCondition { get { throw null; } set { } } + + public JsonNamingPolicy? DictionaryKeyPolicy { get { throw null; } set { } } + + public Encodings.Web.JavaScriptEncoder? Encoder { get { throw null; } set { } } + + [Obsolete("JsonSerializerOptions.IgnoreNullValues is obsolete. To ignore null values when serializing, set DefaultIgnoreCondition to JsonIgnoreCondition.WhenWritingNull.", DiagnosticId = "SYSLIB0020", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")] + public bool IgnoreNullValues { get { throw null; } set { } } + + public bool IgnoreReadOnlyFields { get { throw null; } set { } } + + public bool IgnoreReadOnlyProperties { get { throw null; } set { } } + + public bool IncludeFields { get { throw null; } set { } } + + public bool IsReadOnly { get { throw null; } } + + public int MaxDepth { get { throw null; } set { } } + + public Serialization.JsonNumberHandling NumberHandling { get { throw null; } set { } } + + public Serialization.JsonObjectCreationHandling PreferredObjectCreationHandling { get { throw null; } set { } } + + public bool PropertyNameCaseInsensitive { get { throw null; } set { } } + + public JsonNamingPolicy? PropertyNamingPolicy { get { throw null; } set { } } + + public JsonCommentHandling ReadCommentHandling { get { throw null; } set { } } + + public Serialization.ReferenceHandler? ReferenceHandler { get { throw null; } set { } } + + public Serialization.Metadata.IJsonTypeInfoResolver? TypeInfoResolver { get { throw null; } set { } } + + public Collections.Generic.IList TypeInfoResolverChain { get { throw null; } } + + public Serialization.JsonUnknownTypeHandling UnknownTypeHandling { get { throw null; } set { } } + + public Serialization.JsonUnmappedMemberHandling UnmappedMemberHandling { get { throw null; } set { } } + + public bool WriteIndented { get { throw null; } set { } } + + [Obsolete("JsonSerializerOptions.AddContext is obsolete. To register a JsonSerializerContext, use either the TypeInfoResolver or TypeInfoResolverChain properties.", DiagnosticId = "SYSLIB0049", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")] + public void AddContext() + where TContext : Serialization.JsonSerializerContext, new() { } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Getting a converter for a type may require reflection which depends on unreferenced code.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("Getting a converter for a type may require reflection which depends on runtime code generation.")] + public Serialization.JsonConverter GetConverter(Type typeToConvert) { throw null; } + + public Serialization.Metadata.JsonTypeInfo GetTypeInfo(Type type) { throw null; } + + public void MakeReadOnly() { } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Populating unconfigured TypeInfoResolver properties with the reflection resolver requires unreferenced code.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("Populating unconfigured TypeInfoResolver properties with the reflection resolver requires runtime code generation.")] + public void MakeReadOnly(bool populateMissingResolver) { } + + public bool TryGetTypeInfo(Type type, out Serialization.Metadata.JsonTypeInfo? typeInfo) { throw null; } + } + + public enum JsonTokenType : byte + { + None = 0, + StartObject = 1, + EndObject = 2, + StartArray = 3, + EndArray = 4, + PropertyName = 5, + Comment = 6, + String = 7, + Number = 8, + True = 9, + False = 10, + Null = 11 + } + + public enum JsonValueKind : byte + { + Undefined = 0, + Object = 1, + Array = 2, + String = 3, + Number = 4, + True = 5, + False = 6, + Null = 7 + } + + public partial struct JsonWriterOptions + { + private object _dummy; + private int _dummyPrimitive; + public Encodings.Web.JavaScriptEncoder? Encoder { get { throw null; } set { } } + + public bool Indented { get { throw null; } set { } } + + public int MaxDepth { get { throw null; } set { } } + + public bool SkipValidation { get { throw null; } set { } } + } + + public ref partial struct Utf8JsonReader + { + private object _dummy; + private int _dummyPrimitive; + public Utf8JsonReader(Buffers.ReadOnlySequence jsonData, bool isFinalBlock, JsonReaderState state) { } + + public Utf8JsonReader(Buffers.ReadOnlySequence jsonData, JsonReaderOptions options = default) { } + + public Utf8JsonReader(ReadOnlySpan jsonData, bool isFinalBlock, JsonReaderState state) { } + + public Utf8JsonReader(ReadOnlySpan jsonData, JsonReaderOptions options = default) { } + + public long BytesConsumed { get { throw null; } } + + public int CurrentDepth { get { throw null; } } + + public JsonReaderState CurrentState { get { throw null; } } + + public bool HasValueSequence { get { throw null; } } + + public bool IsFinalBlock { get { throw null; } } + + public SequencePosition Position { get { throw null; } } + + public long TokenStartIndex { get { throw null; } } + + public JsonTokenType TokenType { get { throw null; } } + + public bool ValueIsEscaped { get { throw null; } } + + public Buffers.ReadOnlySequence ValueSequence { get { throw null; } } + + public ReadOnlySpan ValueSpan { get { throw null; } } + + public readonly int CopyString(Span utf8Destination) { throw null; } + + public readonly int CopyString(Span destination) { throw null; } + + public bool GetBoolean() { throw null; } + + public byte GetByte() { throw null; } + + public byte[] GetBytesFromBase64() { throw null; } + + public string GetComment() { throw null; } + + public DateTime GetDateTime() { throw null; } + + public DateTimeOffset GetDateTimeOffset() { throw null; } + + public decimal GetDecimal() { throw null; } + + public double GetDouble() { throw null; } + + public Guid GetGuid() { throw null; } + + public short GetInt16() { throw null; } + + public int GetInt32() { throw null; } + + public long GetInt64() { throw null; } + + [CLSCompliant(false)] + public sbyte GetSByte() { throw null; } + + public float GetSingle() { throw null; } + + public string? GetString() { throw null; } + + [CLSCompliant(false)] + public ushort GetUInt16() { throw null; } + + [CLSCompliant(false)] + public uint GetUInt32() { throw null; } + + [CLSCompliant(false)] + public ulong GetUInt64() { throw null; } + + public bool Read() { throw null; } + + public void Skip() { } + + public bool TryGetByte(out byte value) { throw null; } + + public bool TryGetBytesFromBase64(out byte[]? value) { throw null; } + + public bool TryGetDateTime(out DateTime value) { throw null; } + + public bool TryGetDateTimeOffset(out DateTimeOffset value) { throw null; } + + public bool TryGetDecimal(out decimal value) { throw null; } + + public bool TryGetDouble(out double value) { throw null; } + + public bool TryGetGuid(out Guid value) { throw null; } + + public bool TryGetInt16(out short value) { throw null; } + + public bool TryGetInt32(out int value) { throw null; } + + public bool TryGetInt64(out long value) { throw null; } + + [CLSCompliant(false)] + public bool TryGetSByte(out sbyte value) { throw null; } + + public bool TryGetSingle(out float value) { throw null; } + + [CLSCompliant(false)] + public bool TryGetUInt16(out ushort value) { throw null; } + + [CLSCompliant(false)] + public bool TryGetUInt32(out uint value) { throw null; } + + [CLSCompliant(false)] + public bool TryGetUInt64(out ulong value) { throw null; } + + public bool TrySkip() { throw null; } + + public readonly bool ValueTextEquals(ReadOnlySpan utf8Text) { throw null; } + + public readonly bool ValueTextEquals(ReadOnlySpan text) { throw null; } + + public readonly bool ValueTextEquals(string? text) { throw null; } + } + + public sealed partial class Utf8JsonWriter : IDisposable, IAsyncDisposable + { + public Utf8JsonWriter(Buffers.IBufferWriter bufferWriter, JsonWriterOptions options = default) { } + + public Utf8JsonWriter(IO.Stream utf8Json, JsonWriterOptions options = default) { } + + public long BytesCommitted { get { throw null; } } + + public int BytesPending { get { throw null; } } + + public int CurrentDepth { get { throw null; } } + + public JsonWriterOptions Options { get { throw null; } } + + public void Dispose() { } + + public Threading.Tasks.ValueTask DisposeAsync() { throw null; } + + public void Flush() { } + + public Threading.Tasks.Task FlushAsync(Threading.CancellationToken cancellationToken = default) { throw null; } + + public void Reset() { } + + public void Reset(Buffers.IBufferWriter bufferWriter) { } + + public void Reset(IO.Stream utf8Json) { } + + public void WriteBase64String(ReadOnlySpan utf8PropertyName, ReadOnlySpan bytes) { } + + public void WriteBase64String(ReadOnlySpan propertyName, ReadOnlySpan bytes) { } + + public void WriteBase64String(string propertyName, ReadOnlySpan bytes) { } + + public void WriteBase64String(JsonEncodedText propertyName, ReadOnlySpan bytes) { } + + public void WriteBase64StringValue(ReadOnlySpan bytes) { } + + public void WriteBoolean(ReadOnlySpan utf8PropertyName, bool value) { } + + public void WriteBoolean(ReadOnlySpan propertyName, bool value) { } + + public void WriteBoolean(string propertyName, bool value) { } + + public void WriteBoolean(JsonEncodedText propertyName, bool value) { } + + public void WriteBooleanValue(bool value) { } + + public void WriteCommentValue(ReadOnlySpan utf8Value) { } + + public void WriteCommentValue(ReadOnlySpan value) { } + + public void WriteCommentValue(string value) { } + + public void WriteEndArray() { } + + public void WriteEndObject() { } + + public void WriteNull(ReadOnlySpan utf8PropertyName) { } + + public void WriteNull(ReadOnlySpan propertyName) { } + + public void WriteNull(string propertyName) { } + + public void WriteNull(JsonEncodedText propertyName) { } + + public void WriteNullValue() { } + + public void WriteNumber(ReadOnlySpan utf8PropertyName, decimal value) { } + + public void WriteNumber(ReadOnlySpan utf8PropertyName, double value) { } + + public void WriteNumber(ReadOnlySpan utf8PropertyName, int value) { } + + public void WriteNumber(ReadOnlySpan utf8PropertyName, long value) { } + + public void WriteNumber(ReadOnlySpan utf8PropertyName, float value) { } + + [CLSCompliant(false)] + public void WriteNumber(ReadOnlySpan utf8PropertyName, uint value) { } + + [CLSCompliant(false)] + public void WriteNumber(ReadOnlySpan utf8PropertyName, ulong value) { } + + public void WriteNumber(ReadOnlySpan propertyName, decimal value) { } + + public void WriteNumber(ReadOnlySpan propertyName, double value) { } + + public void WriteNumber(ReadOnlySpan propertyName, int value) { } + + public void WriteNumber(ReadOnlySpan propertyName, long value) { } + + public void WriteNumber(ReadOnlySpan propertyName, float value) { } + + [CLSCompliant(false)] + public void WriteNumber(ReadOnlySpan propertyName, uint value) { } + + [CLSCompliant(false)] + public void WriteNumber(ReadOnlySpan propertyName, ulong value) { } + + public void WriteNumber(string propertyName, decimal value) { } + + public void WriteNumber(string propertyName, double value) { } + + public void WriteNumber(string propertyName, int value) { } + + public void WriteNumber(string propertyName, long value) { } + + public void WriteNumber(string propertyName, float value) { } + + [CLSCompliant(false)] + public void WriteNumber(string propertyName, uint value) { } + + [CLSCompliant(false)] + public void WriteNumber(string propertyName, ulong value) { } + + public void WriteNumber(JsonEncodedText propertyName, decimal value) { } + + public void WriteNumber(JsonEncodedText propertyName, double value) { } + + public void WriteNumber(JsonEncodedText propertyName, int value) { } + + public void WriteNumber(JsonEncodedText propertyName, long value) { } + + public void WriteNumber(JsonEncodedText propertyName, float value) { } + + [CLSCompliant(false)] + public void WriteNumber(JsonEncodedText propertyName, uint value) { } + + [CLSCompliant(false)] + public void WriteNumber(JsonEncodedText propertyName, ulong value) { } + + public void WriteNumberValue(decimal value) { } + + public void WriteNumberValue(double value) { } + + public void WriteNumberValue(int value) { } + + public void WriteNumberValue(long value) { } + + public void WriteNumberValue(float value) { } + + [CLSCompliant(false)] + public void WriteNumberValue(uint value) { } + + [CLSCompliant(false)] + public void WriteNumberValue(ulong value) { } + + public void WritePropertyName(ReadOnlySpan utf8PropertyName) { } + + public void WritePropertyName(ReadOnlySpan propertyName) { } + + public void WritePropertyName(string propertyName) { } + + public void WritePropertyName(JsonEncodedText propertyName) { } + + public void WriteRawValue(Buffers.ReadOnlySequence utf8Json, bool skipInputValidation = false) { } + + public void WriteRawValue(ReadOnlySpan utf8Json, bool skipInputValidation = false) { } + + public void WriteRawValue(ReadOnlySpan json, bool skipInputValidation = false) { } + + public void WriteRawValue(string json, bool skipInputValidation = false) { } + + public void WriteStartArray() { } + + public void WriteStartArray(ReadOnlySpan utf8PropertyName) { } + + public void WriteStartArray(ReadOnlySpan propertyName) { } + + public void WriteStartArray(string propertyName) { } + + public void WriteStartArray(JsonEncodedText propertyName) { } + + public void WriteStartObject() { } + + public void WriteStartObject(ReadOnlySpan utf8PropertyName) { } + + public void WriteStartObject(ReadOnlySpan propertyName) { } + + public void WriteStartObject(string propertyName) { } + + public void WriteStartObject(JsonEncodedText propertyName) { } + + public void WriteString(ReadOnlySpan utf8PropertyName, DateTime value) { } + + public void WriteString(ReadOnlySpan utf8PropertyName, DateTimeOffset value) { } + + public void WriteString(ReadOnlySpan utf8PropertyName, Guid value) { } + + public void WriteString(ReadOnlySpan utf8PropertyName, ReadOnlySpan utf8Value) { } + + public void WriteString(ReadOnlySpan utf8PropertyName, ReadOnlySpan value) { } + + public void WriteString(ReadOnlySpan utf8PropertyName, string? value) { } + + public void WriteString(ReadOnlySpan utf8PropertyName, JsonEncodedText value) { } + + public void WriteString(ReadOnlySpan propertyName, DateTime value) { } + + public void WriteString(ReadOnlySpan propertyName, DateTimeOffset value) { } + + public void WriteString(ReadOnlySpan propertyName, Guid value) { } + + public void WriteString(ReadOnlySpan propertyName, ReadOnlySpan utf8Value) { } + + public void WriteString(ReadOnlySpan propertyName, ReadOnlySpan value) { } + + public void WriteString(ReadOnlySpan propertyName, string? value) { } + + public void WriteString(ReadOnlySpan propertyName, JsonEncodedText value) { } + + public void WriteString(string propertyName, DateTime value) { } + + public void WriteString(string propertyName, DateTimeOffset value) { } + + public void WriteString(string propertyName, Guid value) { } + + public void WriteString(string propertyName, ReadOnlySpan utf8Value) { } + + public void WriteString(string propertyName, ReadOnlySpan value) { } + + public void WriteString(string propertyName, string? value) { } + + public void WriteString(string propertyName, JsonEncodedText value) { } + + public void WriteString(JsonEncodedText propertyName, DateTime value) { } + + public void WriteString(JsonEncodedText propertyName, DateTimeOffset value) { } + + public void WriteString(JsonEncodedText propertyName, Guid value) { } + + public void WriteString(JsonEncodedText propertyName, ReadOnlySpan utf8Value) { } + + public void WriteString(JsonEncodedText propertyName, ReadOnlySpan value) { } + + public void WriteString(JsonEncodedText propertyName, string? value) { } + + public void WriteString(JsonEncodedText propertyName, JsonEncodedText value) { } + + public void WriteStringValue(DateTime value) { } + + public void WriteStringValue(DateTimeOffset value) { } + + public void WriteStringValue(Guid value) { } + + public void WriteStringValue(ReadOnlySpan utf8Value) { } + + public void WriteStringValue(ReadOnlySpan value) { } + + public void WriteStringValue(string? value) { } + + public void WriteStringValue(JsonEncodedText value) { } + } +} + +namespace System.Text.Json.Nodes +{ + public sealed partial class JsonArray : JsonNode, Collections.Generic.IList, Collections.Generic.ICollection, Collections.Generic.IEnumerable, Collections.IEnumerable + { + public JsonArray(JsonNodeOptions? options = null) { } + + public JsonArray(params JsonNode?[] items) { } + + public JsonArray(JsonNodeOptions options, params JsonNode?[] items) { } + + public int Count { get { throw null; } } + + bool Collections.Generic.ICollection.IsReadOnly { get { throw null; } } + + public void Add(JsonNode? item) { } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Creating JsonValue instances with non-primitive types is not compatible with trimming. It can result in non-primitive types being serialized, which may have their members trimmed.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("Creating JsonValue instances with non-primitive types requires generating code at runtime.")] + public void Add(T? value) { } + + public void Clear() { } + + public bool Contains(JsonNode? item) { throw null; } + + public static JsonArray? Create(JsonElement element, JsonNodeOptions? options = null) { throw null; } + + public Collections.Generic.IEnumerator GetEnumerator() { throw null; } + + public Collections.Generic.IEnumerable GetValues() { throw null; } + + public int IndexOf(JsonNode? item) { throw null; } + + public void Insert(int index, JsonNode? item) { } + + public bool Remove(JsonNode? item) { throw null; } + + public void RemoveAt(int index) { } + + void Collections.Generic.ICollection.CopyTo(JsonNode[] array, int index) { } + + Collections.IEnumerator? Collections.IEnumerable.GetEnumerator() { throw null; } + + public override void WriteTo(Utf8JsonWriter writer, JsonSerializerOptions? options = null) { } + } + + public abstract partial class JsonNode + { + internal JsonNode() { } + + public JsonNode? this[int index] { get { throw null; } set { } } + + public JsonNode? this[string propertyName] { get { throw null; } set { } } + + public JsonNodeOptions? Options { get { throw null; } } + + public JsonNode? Parent { get { throw null; } } + + public JsonNode Root { get { throw null; } } + + public JsonArray AsArray() { throw null; } + + public JsonObject AsObject() { throw null; } + + public JsonValue AsValue() { throw null; } + + public JsonNode DeepClone() { throw null; } + + public static bool DeepEquals(JsonNode? node1, JsonNode? node2) { throw null; } + + public int GetElementIndex() { throw null; } + + public string GetPath() { throw null; } + + public string GetPropertyName() { throw null; } + + public virtual T GetValue() { throw null; } + + public JsonValueKind GetValueKind() { throw null; } + + public static explicit operator bool(JsonNode value) { throw null; } + + public static explicit operator byte(JsonNode value) { throw null; } + + public static explicit operator char(JsonNode value) { throw null; } + + public static explicit operator DateTime(JsonNode value) { throw null; } + + public static explicit operator DateTimeOffset(JsonNode value) { throw null; } + + public static explicit operator decimal(JsonNode value) { throw null; } + + public static explicit operator double(JsonNode value) { throw null; } + + public static explicit operator Guid(JsonNode value) { throw null; } + + public static explicit operator short(JsonNode value) { throw null; } + + public static explicit operator int(JsonNode value) { throw null; } + + public static explicit operator long(JsonNode value) { throw null; } + + public static explicit operator bool?(JsonNode? value) { throw null; } + + public static explicit operator byte?(JsonNode? value) { throw null; } + + public static explicit operator char?(JsonNode? value) { throw null; } + + public static explicit operator DateTime?(JsonNode? value) { throw null; } + + public static explicit operator DateTimeOffset?(JsonNode? value) { throw null; } + + public static explicit operator decimal?(JsonNode? value) { throw null; } + + public static explicit operator double?(JsonNode? value) { throw null; } + + public static explicit operator Guid?(JsonNode? value) { throw null; } + + public static explicit operator short?(JsonNode? value) { throw null; } + + public static explicit operator int?(JsonNode? value) { throw null; } + + public static explicit operator long?(JsonNode? value) { throw null; } + + [CLSCompliant(false)] + public static explicit operator sbyte?(JsonNode? value) { throw null; } + + public static explicit operator float?(JsonNode? value) { throw null; } + + [CLSCompliant(false)] + public static explicit operator ushort?(JsonNode? value) { throw null; } + + [CLSCompliant(false)] + public static explicit operator uint?(JsonNode? value) { throw null; } + + [CLSCompliant(false)] + public static explicit operator ulong?(JsonNode? value) { throw null; } + + [CLSCompliant(false)] + public static explicit operator sbyte(JsonNode value) { throw null; } + + public static explicit operator float(JsonNode value) { throw null; } + + public static explicit operator string?(JsonNode? value) { throw null; } + + [CLSCompliant(false)] + public static explicit operator ushort(JsonNode value) { throw null; } + + [CLSCompliant(false)] + public static explicit operator uint(JsonNode value) { throw null; } + + [CLSCompliant(false)] + public static explicit operator ulong(JsonNode value) { throw null; } + + public static implicit operator JsonNode(bool value) { throw null; } + + public static implicit operator JsonNode(byte value) { throw null; } + + public static implicit operator JsonNode(char value) { throw null; } + + public static implicit operator JsonNode(DateTime value) { throw null; } + + public static implicit operator JsonNode(DateTimeOffset value) { throw null; } + + public static implicit operator JsonNode(decimal value) { throw null; } + + public static implicit operator JsonNode(double value) { throw null; } + + public static implicit operator JsonNode(Guid value) { throw null; } + + public static implicit operator JsonNode(short value) { throw null; } + + public static implicit operator JsonNode(int value) { throw null; } + + public static implicit operator JsonNode(long value) { throw null; } + + public static implicit operator JsonNode?(bool? value) { throw null; } + + public static implicit operator JsonNode?(byte? value) { throw null; } + + public static implicit operator JsonNode?(char? value) { throw null; } + + public static implicit operator JsonNode?(DateTime? value) { throw null; } + + public static implicit operator JsonNode?(DateTimeOffset? value) { throw null; } + + public static implicit operator JsonNode?(decimal? value) { throw null; } + + public static implicit operator JsonNode?(double? value) { throw null; } + + public static implicit operator JsonNode?(Guid? value) { throw null; } + + public static implicit operator JsonNode?(short? value) { throw null; } + + public static implicit operator JsonNode?(int? value) { throw null; } + + public static implicit operator JsonNode?(long? value) { throw null; } + + [CLSCompliant(false)] + public static implicit operator JsonNode?(sbyte? value) { throw null; } + + public static implicit operator JsonNode?(float? value) { throw null; } + + [CLSCompliant(false)] + public static implicit operator JsonNode?(ushort? value) { throw null; } + + [CLSCompliant(false)] + public static implicit operator JsonNode?(uint? value) { throw null; } + + [CLSCompliant(false)] + public static implicit operator JsonNode?(ulong? value) { throw null; } + + [CLSCompliant(false)] + public static implicit operator JsonNode(sbyte value) { throw null; } + + public static implicit operator JsonNode(float value) { throw null; } + + public static implicit operator JsonNode?(string? value) { throw null; } + + [CLSCompliant(false)] + public static implicit operator JsonNode(ushort value) { throw null; } + + [CLSCompliant(false)] + public static implicit operator JsonNode(uint value) { throw null; } + + [CLSCompliant(false)] + public static implicit operator JsonNode(ulong value) { throw null; } + + public static JsonNode? Parse(IO.Stream utf8Json, JsonNodeOptions? nodeOptions = null, JsonDocumentOptions documentOptions = default) { throw null; } + + public static JsonNode? Parse(ReadOnlySpan utf8Json, JsonNodeOptions? nodeOptions = null, JsonDocumentOptions documentOptions = default) { throw null; } + + public static JsonNode? Parse(string json, JsonNodeOptions? nodeOptions = null, JsonDocumentOptions documentOptions = default) { throw null; } + + public static JsonNode? Parse(ref Utf8JsonReader reader, JsonNodeOptions? nodeOptions = null) { throw null; } + + public static Threading.Tasks.Task ParseAsync(IO.Stream utf8Json, JsonNodeOptions? nodeOptions = null, JsonDocumentOptions documentOptions = default, Threading.CancellationToken cancellationToken = default) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Creating JsonValue instances with non-primitive types is not compatible with trimming. It can result in non-primitive types being serialized, which may have their members trimmed.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("Creating JsonValue instances with non-primitive types requires generating code at runtime.")] + public void ReplaceWith(T value) { } + + public string ToJsonString(JsonSerializerOptions? options = null) { throw null; } + + public override string ToString() { throw null; } + + public abstract void WriteTo(Utf8JsonWriter writer, JsonSerializerOptions? options = null); + } + + public partial struct JsonNodeOptions + { + private int _dummyPrimitive; + public bool PropertyNameCaseInsensitive { get { throw null; } set { } } + } + + public sealed partial class JsonObject : JsonNode, Collections.Generic.IDictionary, Collections.Generic.ICollection>, Collections.Generic.IEnumerable>, Collections.IEnumerable + { + public JsonObject(Collections.Generic.IEnumerable> properties, JsonNodeOptions? options = null) { } + + public JsonObject(JsonNodeOptions? options = null) { } + + public int Count { get { throw null; } } + + bool Collections.Generic.ICollection>.IsReadOnly { get { throw null; } } + + Collections.Generic.ICollection Collections.Generic.IDictionary.Keys { get { throw null; } } + + Collections.Generic.ICollection Collections.Generic.IDictionary.Values { get { throw null; } } + + public void Add(Collections.Generic.KeyValuePair property) { } + + public void Add(string propertyName, JsonNode? value) { } + + public void Clear() { } + + public bool ContainsKey(string propertyName) { throw null; } + + public static JsonObject? Create(JsonElement element, JsonNodeOptions? options = null) { throw null; } + + public Collections.Generic.IEnumerator> GetEnumerator() { throw null; } + + public bool Remove(string propertyName) { throw null; } + + bool Collections.Generic.ICollection>.Contains(Collections.Generic.KeyValuePair item) { throw null; } + + void Collections.Generic.ICollection>.CopyTo(Collections.Generic.KeyValuePair[] array, int index) { } + + bool Collections.Generic.ICollection>.Remove(Collections.Generic.KeyValuePair item) { throw null; } + + bool Collections.Generic.IDictionary.TryGetValue(string propertyName, out JsonNode jsonNode) { throw null; } + + Collections.IEnumerator Collections.IEnumerable.GetEnumerator() { throw null; } + + public bool TryGetPropertyValue(string propertyName, out JsonNode? jsonNode) { throw null; } + + public override void WriteTo(Utf8JsonWriter writer, JsonSerializerOptions? options = null) { } + } + + public abstract partial class JsonValue : JsonNode + { + internal JsonValue() { } + + public static JsonValue Create(bool value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue Create(byte value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue Create(char value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue Create(DateTime value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue Create(DateTimeOffset value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue Create(decimal value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue Create(double value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue Create(Guid value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue Create(short value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue Create(int value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue Create(long value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue? Create(bool? value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue? Create(byte? value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue? Create(char? value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue? Create(DateTime? value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue? Create(DateTimeOffset? value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue? Create(decimal? value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue? Create(double? value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue? Create(Guid? value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue? Create(short? value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue? Create(int? value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue? Create(long? value, JsonNodeOptions? options = null) { throw null; } + + [CLSCompliant(false)] + public static JsonValue? Create(sbyte? value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue? Create(float? value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue? Create(JsonElement? value, JsonNodeOptions? options = null) { throw null; } + + [CLSCompliant(false)] + public static JsonValue? Create(ushort? value, JsonNodeOptions? options = null) { throw null; } + + [CLSCompliant(false)] + public static JsonValue? Create(uint? value, JsonNodeOptions? options = null) { throw null; } + + [CLSCompliant(false)] + public static JsonValue? Create(ulong? value, JsonNodeOptions? options = null) { throw null; } + + [CLSCompliant(false)] + public static JsonValue Create(sbyte value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue Create(float value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue? Create(string? value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue? Create(JsonElement value, JsonNodeOptions? options = null) { throw null; } + + [CLSCompliant(false)] + public static JsonValue Create(ushort value, JsonNodeOptions? options = null) { throw null; } + + [CLSCompliant(false)] + public static JsonValue Create(uint value, JsonNodeOptions? options = null) { throw null; } + + [CLSCompliant(false)] + public static JsonValue Create(ulong value, JsonNodeOptions? options = null) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Creating JsonValue instances with non-primitive types is not compatible with trimming. It can result in non-primitive types being serialized, which may have their members trimmed. Use the overload that takes a JsonTypeInfo, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("Creating JsonValue instances with non-primitive types requires generating code at runtime.")] + public static JsonValue? Create(T? value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue? Create(T? value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo, JsonNodeOptions? options = null) { throw null; } + + public abstract bool TryGetValue(out T? value); + } +} + +namespace System.Text.Json.Serialization +{ + public partial interface IJsonOnDeserialized + { + void OnDeserialized(); + } + + public partial interface IJsonOnDeserializing + { + void OnDeserializing(); + } + + public partial interface IJsonOnSerialized + { + void OnSerialized(); + } + + public partial interface IJsonOnSerializing + { + void OnSerializing(); + } + + public abstract partial class JsonAttribute : Attribute + { + } + + [AttributeUsage(AttributeTargets.Constructor, AllowMultiple = false)] + public sealed partial class JsonConstructorAttribute : JsonAttribute + { + } + + public abstract partial class JsonConverter + { + internal JsonConverter() { } + + public abstract Type? Type { get; } + + public abstract bool CanConvert(Type typeToConvert); + } + + [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Interface, AllowMultiple = false)] + public partial class JsonConverterAttribute : JsonAttribute + { + protected JsonConverterAttribute() { } + + public JsonConverterAttribute(Type converterType) { } + + [Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicParameterlessConstructor)] + public Type? ConverterType { get { throw null; } } + + public virtual JsonConverter? CreateConverter(Type typeToConvert) { throw null; } + } + + public abstract partial class JsonConverterFactory : JsonConverter + { + protected JsonConverterFactory() { } + + public sealed override Type? Type { get { throw null; } } + + public abstract JsonConverter? CreateConverter(Type typeToConvert, JsonSerializerOptions options); + } + + public abstract partial class JsonConverter : JsonConverter + { + protected internal JsonConverter() { } + + public virtual bool HandleNull { get { throw null; } } + + public sealed override Type Type { get { throw null; } } + + public override bool CanConvert(Type typeToConvert) { throw null; } + + public abstract T? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options); + public virtual T ReadAsPropertyName(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { throw null; } + + public abstract void Write(Utf8JsonWriter writer, T value, JsonSerializerOptions options); + public virtual void WriteAsPropertyName(Utf8JsonWriter writer, T value, JsonSerializerOptions options) { } + } + + [AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface, AllowMultiple = true, Inherited = false)] + public partial class JsonDerivedTypeAttribute : JsonAttribute + { + public JsonDerivedTypeAttribute(Type derivedType, int typeDiscriminator) { } + + public JsonDerivedTypeAttribute(Type derivedType, string typeDiscriminator) { } + + public JsonDerivedTypeAttribute(Type derivedType) { } + + public Type DerivedType { get { throw null; } } + + public object? TypeDiscriminator { get { throw null; } } + } + + [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)] + public sealed partial class JsonExtensionDataAttribute : JsonAttribute + { + } + + [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)] + public sealed partial class JsonIgnoreAttribute : JsonAttribute + { + public JsonIgnoreCondition Condition { get { throw null; } set { } } + } + + public enum JsonIgnoreCondition + { + Never = 0, + Always = 1, + WhenWritingDefault = 2, + WhenWritingNull = 3 + } + + [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)] + public sealed partial class JsonIncludeAttribute : JsonAttribute + { + } + + public enum JsonKnownNamingPolicy + { + Unspecified = 0, + CamelCase = 1, + SnakeCaseLower = 2, + SnakeCaseUpper = 3, + KebabCaseLower = 4, + KebabCaseUpper = 5 + } + + public sealed partial class JsonNumberEnumConverter : JsonConverterFactory where TEnum : struct, Enum + { + public override bool CanConvert(Type typeToConvert) { throw null; } + + public override JsonConverter? CreateConverter(Type typeToConvert, JsonSerializerOptions options) { throw null; } + } + + [Flags] + public enum JsonNumberHandling + { + Strict = 0, + AllowReadingFromString = 1, + WriteAsString = 2, + AllowNamedFloatingPointLiterals = 4 + } + + [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)] + public sealed partial class JsonNumberHandlingAttribute : JsonAttribute + { + public JsonNumberHandlingAttribute(JsonNumberHandling handling) { } + + public JsonNumberHandling Handling { get { throw null; } } + } + + public enum JsonObjectCreationHandling + { + Replace = 0, + Populate = 1 + } + + [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Interface, AllowMultiple = false)] + public sealed partial class JsonObjectCreationHandlingAttribute : JsonAttribute + { + public JsonObjectCreationHandlingAttribute(JsonObjectCreationHandling handling) { } + + public JsonObjectCreationHandling Handling { get { throw null; } } + } + + [AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface, AllowMultiple = false, Inherited = false)] + public sealed partial class JsonPolymorphicAttribute : JsonAttribute + { + public bool IgnoreUnrecognizedTypeDiscriminators { get { throw null; } set { } } + + public string? TypeDiscriminatorPropertyName { get { throw null; } set { } } + + public JsonUnknownDerivedTypeHandling UnknownDerivedTypeHandling { get { throw null; } set { } } + } + + [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)] + public sealed partial class JsonPropertyNameAttribute : JsonAttribute + { + public JsonPropertyNameAttribute(string name) { } + + public string Name { get { throw null; } } + } + + [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)] + public sealed partial class JsonPropertyOrderAttribute : JsonAttribute + { + public JsonPropertyOrderAttribute(int order) { } + + public int Order { get { throw null; } } + } + + [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)] + public sealed partial class JsonRequiredAttribute : JsonAttribute + { + } + + [AttributeUsage(AttributeTargets.Class, AllowMultiple = true)] + public sealed partial class JsonSerializableAttribute : JsonAttribute + { + public JsonSerializableAttribute(Type type) { } + + public JsonSourceGenerationMode GenerationMode { get { throw null; } set { } } + + public string? TypeInfoPropertyName { get { throw null; } set { } } + } + + public abstract partial class JsonSerializerContext : Metadata.IJsonTypeInfoResolver + { + protected JsonSerializerContext(JsonSerializerOptions? options) { } + + protected abstract JsonSerializerOptions? GeneratedSerializerOptions { get; } + + public JsonSerializerOptions Options { get { throw null; } } + + public abstract Metadata.JsonTypeInfo? GetTypeInfo(Type type); + Metadata.JsonTypeInfo Metadata.IJsonTypeInfoResolver.GetTypeInfo(Type type, JsonSerializerOptions options) { throw null; } + } + + [Flags] + public enum JsonSourceGenerationMode + { + Default = 0, + Metadata = 1, + Serialization = 2 + } + + [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)] + public sealed partial class JsonSourceGenerationOptionsAttribute : JsonAttribute + { + public JsonSourceGenerationOptionsAttribute() { } + + public JsonSourceGenerationOptionsAttribute(JsonSerializerDefaults defaults) { } + + public bool AllowTrailingCommas { get { throw null; } set { } } + + public Type[]? Converters { get { throw null; } set { } } + + public int DefaultBufferSize { get { throw null; } set { } } + + public JsonIgnoreCondition DefaultIgnoreCondition { get { throw null; } set { } } + + public JsonKnownNamingPolicy DictionaryKeyPolicy { get { throw null; } set { } } + + public JsonSourceGenerationMode GenerationMode { get { throw null; } set { } } + + public bool IgnoreReadOnlyFields { get { throw null; } set { } } + + public bool IgnoreReadOnlyProperties { get { throw null; } set { } } + + public bool IncludeFields { get { throw null; } set { } } + + public int MaxDepth { get { throw null; } set { } } + + public JsonNumberHandling NumberHandling { get { throw null; } set { } } + + public JsonObjectCreationHandling PreferredObjectCreationHandling { get { throw null; } set { } } + + public bool PropertyNameCaseInsensitive { get { throw null; } set { } } + + public JsonKnownNamingPolicy PropertyNamingPolicy { get { throw null; } set { } } + + public JsonCommentHandling ReadCommentHandling { get { throw null; } set { } } + + public JsonUnknownTypeHandling UnknownTypeHandling { get { throw null; } set { } } + + public JsonUnmappedMemberHandling UnmappedMemberHandling { get { throw null; } set { } } + + public bool UseStringEnumConverter { get { throw null; } set { } } + + public bool WriteIndented { get { throw null; } set { } } + } + + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JsonStringEnumConverter cannot be statically analyzed and requires runtime code generation. Applications should use the generic JsonStringEnumConverter instead.")] + public partial class JsonStringEnumConverter : JsonConverterFactory + { + public JsonStringEnumConverter() { } + + public JsonStringEnumConverter(JsonNamingPolicy? namingPolicy = null, bool allowIntegerValues = true) { } + + public sealed override bool CanConvert(Type typeToConvert) { throw null; } + + public sealed override JsonConverter CreateConverter(Type typeToConvert, JsonSerializerOptions options) { throw null; } + } + + public partial class JsonStringEnumConverter : JsonConverterFactory where TEnum : struct, Enum + { + public JsonStringEnumConverter() { } + + public JsonStringEnumConverter(JsonNamingPolicy? namingPolicy = null, bool allowIntegerValues = true) { } + + public sealed override bool CanConvert(Type typeToConvert) { throw null; } + + public sealed override JsonConverter? CreateConverter(Type typeToConvert, JsonSerializerOptions options) { throw null; } + } + + public enum JsonUnknownDerivedTypeHandling + { + FailSerialization = 0, + FallBackToBaseType = 1, + FallBackToNearestAncestor = 2 + } + + public enum JsonUnknownTypeHandling + { + JsonElement = 0, + JsonNode = 1 + } + + public enum JsonUnmappedMemberHandling + { + Skip = 0, + Disallow = 1 + } + + [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Interface, AllowMultiple = false, Inherited = false)] + public partial class JsonUnmappedMemberHandlingAttribute : JsonAttribute + { + public JsonUnmappedMemberHandlingAttribute(JsonUnmappedMemberHandling unmappedMemberHandling) { } + + public JsonUnmappedMemberHandling UnmappedMemberHandling { get { throw null; } } + } + + public abstract partial class ReferenceHandler + { + public static ReferenceHandler IgnoreCycles { get { throw null; } } + + public static ReferenceHandler Preserve { get { throw null; } } + + public abstract ReferenceResolver CreateResolver(); + } + + public sealed partial class ReferenceHandler : ReferenceHandler where T : ReferenceResolver, new() + { + public override ReferenceResolver CreateResolver() { throw null; } + } + + public abstract partial class ReferenceResolver + { + public abstract void AddReference(string referenceId, object value); + public abstract string GetReference(object value, out bool alreadyExists); + public abstract object ResolveReference(string referenceId); + } +} + +namespace System.Text.Json.Serialization.Metadata +{ + public partial class DefaultJsonTypeInfoResolver : IJsonTypeInfoResolver + { + public Collections.Generic.IList> Modifiers { get { throw null; } } + + [Diagnostics.CodeAnalysis.UnconditionalSuppressMessage("ReflectionAnalysis", "IL2026:RequiresUnreferencedCode", Justification = "The ctor is marked RequiresUnreferencedCode.")] + [Diagnostics.CodeAnalysis.UnconditionalSuppressMessage("AotAnalysis", "IL3050:RequiresDynamicCode", Justification = "The ctor is marked RequiresDynamicCode.")] + public virtual JsonTypeInfo GetTypeInfo(Type type, JsonSerializerOptions options) { throw null; } + } + + public partial interface IJsonTypeInfoResolver + { + JsonTypeInfo? GetTypeInfo(Type type, JsonSerializerOptions options); + } + + public sealed partial class JsonCollectionInfoValues + { + public JsonTypeInfo ElementInfo { get { throw null; } init { } } + + public JsonTypeInfo? KeyInfo { get { throw null; } init { } } + + public JsonNumberHandling NumberHandling { get { throw null; } init { } } + + public Func? ObjectCreator { get { throw null; } init { } } + + public Action? SerializeHandler { get { throw null; } init { } } + } + + public readonly partial struct JsonDerivedType + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public JsonDerivedType(Type derivedType, int typeDiscriminator) { } + + public JsonDerivedType(Type derivedType, string typeDiscriminator) { } + + public JsonDerivedType(Type derivedType) { } + + public Type DerivedType { get { throw null; } } + + public object? TypeDiscriminator { get { throw null; } } + } + + public static partial class JsonMetadataServices + { + public static JsonConverter BooleanConverter { get { throw null; } } + + public static JsonConverter ByteArrayConverter { get { throw null; } } + + public static JsonConverter ByteConverter { get { throw null; } } + + public static JsonConverter CharConverter { get { throw null; } } + + public static JsonConverter DateOnlyConverter { get { throw null; } } + + public static JsonConverter DateTimeConverter { get { throw null; } } + + public static JsonConverter DateTimeOffsetConverter { get { throw null; } } + + public static JsonConverter DecimalConverter { get { throw null; } } + + public static JsonConverter DoubleConverter { get { throw null; } } + + public static JsonConverter GuidConverter { get { throw null; } } + + public static JsonConverter HalfConverter { get { throw null; } } + + public static JsonConverter Int128Converter { get { throw null; } } + + public static JsonConverter Int16Converter { get { throw null; } } + + public static JsonConverter Int32Converter { get { throw null; } } + + public static JsonConverter Int64Converter { get { throw null; } } + + public static JsonConverter JsonArrayConverter { get { throw null; } } + + public static JsonConverter JsonDocumentConverter { get { throw null; } } + + public static JsonConverter JsonElementConverter { get { throw null; } } + + public static JsonConverter JsonNodeConverter { get { throw null; } } + + public static JsonConverter JsonObjectConverter { get { throw null; } } + + public static JsonConverter JsonValueConverter { get { throw null; } } + + public static JsonConverter> MemoryByteConverter { get { throw null; } } + + public static JsonConverter ObjectConverter { get { throw null; } } + + public static JsonConverter> ReadOnlyMemoryByteConverter { get { throw null; } } + + [CLSCompliant(false)] + public static JsonConverter SByteConverter { get { throw null; } } + + public static JsonConverter SingleConverter { get { throw null; } } + + public static JsonConverter StringConverter { get { throw null; } } + + public static JsonConverter TimeOnlyConverter { get { throw null; } } + + public static JsonConverter TimeSpanConverter { get { throw null; } } + + [CLSCompliant(false)] + public static JsonConverter UInt128Converter { get { throw null; } } + + [CLSCompliant(false)] + public static JsonConverter UInt16Converter { get { throw null; } } + + [CLSCompliant(false)] + public static JsonConverter UInt32Converter { get { throw null; } } + + [CLSCompliant(false)] + public static JsonConverter UInt64Converter { get { throw null; } } + + public static JsonConverter UriConverter { get { throw null; } } + + public static JsonConverter VersionConverter { get { throw null; } } + + public static JsonTypeInfo CreateArrayInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) { throw null; } + + public static JsonTypeInfo CreateConcurrentQueueInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) + where TCollection : Collections.Concurrent.ConcurrentQueue { throw null; } + + public static JsonTypeInfo CreateConcurrentStackInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) + where TCollection : Collections.Concurrent.ConcurrentStack { throw null; } + + public static JsonTypeInfo CreateDictionaryInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) + where TCollection : Collections.Generic.Dictionary { throw null; } + + public static JsonTypeInfo CreateIAsyncEnumerableInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) + where TCollection : Collections.Generic.IAsyncEnumerable { throw null; } + + public static JsonTypeInfo CreateICollectionInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) + where TCollection : Collections.Generic.ICollection { throw null; } + + public static JsonTypeInfo CreateIDictionaryInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) + where TCollection : Collections.IDictionary { throw null; } + + public static JsonTypeInfo CreateIDictionaryInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) + where TCollection : Collections.Generic.IDictionary { throw null; } + + public static JsonTypeInfo CreateIEnumerableInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) + where TCollection : Collections.IEnumerable { throw null; } + + public static JsonTypeInfo CreateIEnumerableInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) + where TCollection : Collections.Generic.IEnumerable { throw null; } + + public static JsonTypeInfo CreateIListInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) + where TCollection : Collections.IList { throw null; } + + public static JsonTypeInfo CreateIListInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) + where TCollection : Collections.Generic.IList { throw null; } + + public static JsonTypeInfo CreateImmutableDictionaryInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo, Func>, TCollection> createRangeFunc) + where TCollection : Collections.Generic.IReadOnlyDictionary { throw null; } + + public static JsonTypeInfo CreateImmutableEnumerableInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo, Func, TCollection> createRangeFunc) + where TCollection : Collections.Generic.IEnumerable { throw null; } + + public static JsonTypeInfo CreateIReadOnlyDictionaryInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) + where TCollection : Collections.Generic.IReadOnlyDictionary { throw null; } + + public static JsonTypeInfo CreateISetInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) + where TCollection : Collections.Generic.ISet { throw null; } + + public static JsonTypeInfo CreateListInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) + where TCollection : Collections.Generic.List { throw null; } + + public static JsonTypeInfo> CreateMemoryInfo(JsonSerializerOptions options, JsonCollectionInfoValues> collectionInfo) { throw null; } + + public static JsonTypeInfo CreateObjectInfo(JsonSerializerOptions options, JsonObjectInfoValues objectInfo) { throw null; } + + public static JsonPropertyInfo CreatePropertyInfo(JsonSerializerOptions options, JsonPropertyInfoValues propertyInfo) { throw null; } + + public static JsonTypeInfo CreateQueueInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo, Action addFunc) + where TCollection : Collections.IEnumerable { throw null; } + + public static JsonTypeInfo CreateQueueInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) + where TCollection : Collections.Generic.Queue { throw null; } + + public static JsonTypeInfo> CreateReadOnlyMemoryInfo(JsonSerializerOptions options, JsonCollectionInfoValues> collectionInfo) { throw null; } + + public static JsonTypeInfo CreateStackInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo, Action addFunc) + where TCollection : Collections.IEnumerable { throw null; } + + public static JsonTypeInfo CreateStackInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) + where TCollection : Collections.Generic.Stack { throw null; } + + public static JsonTypeInfo CreateValueInfo(JsonSerializerOptions options, JsonConverter converter) { throw null; } + + public static JsonConverter GetEnumConverter(JsonSerializerOptions options) + where T : struct, Enum { throw null; } + + public static JsonConverter GetNullableConverter(JsonSerializerOptions options) + where T : struct { throw null; } + + public static JsonConverter GetNullableConverter(JsonTypeInfo underlyingTypeInfo) + where T : struct { throw null; } + + public static JsonConverter GetUnsupportedTypeConverter() { throw null; } + } + + public sealed partial class JsonObjectInfoValues + { + public Func? ConstructorParameterMetadataInitializer { get { throw null; } init { } } + + public JsonNumberHandling NumberHandling { get { throw null; } init { } } + + public Func? ObjectCreator { get { throw null; } init { } } + + public Func? ObjectWithParameterizedConstructorCreator { get { throw null; } init { } } + + public Func? PropertyMetadataInitializer { get { throw null; } init { } } + + public Action? SerializeHandler { get { throw null; } init { } } + } + + public sealed partial class JsonParameterInfoValues + { + public object? DefaultValue { get { throw null; } init { } } + + public bool HasDefaultValue { get { throw null; } init { } } + + public string Name { get { throw null; } init { } } + + public Type ParameterType { get { throw null; } init { } } + + public int Position { get { throw null; } init { } } + } + + public partial class JsonPolymorphismOptions + { + public Collections.Generic.IList DerivedTypes { get { throw null; } } + + public bool IgnoreUnrecognizedTypeDiscriminators { get { throw null; } set { } } + + public string TypeDiscriminatorPropertyName { get { throw null; } set { } } + + public JsonUnknownDerivedTypeHandling UnknownDerivedTypeHandling { get { throw null; } set { } } + } + + public abstract partial class JsonPropertyInfo + { + internal JsonPropertyInfo() { } + + public System.Reflection.ICustomAttributeProvider? AttributeProvider { get { throw null; } set { } } + + public JsonConverter? CustomConverter { get { throw null; } set { } } + + public Func? Get { get { throw null; } set { } } + + public bool IsExtensionData { get { throw null; } set { } } + + public bool IsRequired { get { throw null; } set { } } + + public string Name { get { throw null; } set { } } + + public JsonNumberHandling? NumberHandling { get { throw null; } set { } } + + public JsonObjectCreationHandling? ObjectCreationHandling { get { throw null; } set { } } + + public JsonSerializerOptions Options { get { throw null; } } + + public int Order { get { throw null; } set { } } + + public Type PropertyType { get { throw null; } } + + public Action? Set { get { throw null; } set { } } + + public Func? ShouldSerialize { get { throw null; } set { } } + } + + public sealed partial class JsonPropertyInfoValues + { + public JsonConverter? Converter { get { throw null; } init { } } + + public Type DeclaringType { get { throw null; } init { } } + + public Func? Getter { get { throw null; } init { } } + + public bool HasJsonInclude { get { throw null; } init { } } + + public JsonIgnoreCondition? IgnoreCondition { get { throw null; } init { } } + + public bool IsExtensionData { get { throw null; } init { } } + + public bool IsProperty { get { throw null; } init { } } + + public bool IsPublic { get { throw null; } init { } } + + public bool IsVirtual { get { throw null; } init { } } + + public string? JsonPropertyName { get { throw null; } init { } } + + public JsonNumberHandling? NumberHandling { get { throw null; } init { } } + + public string PropertyName { get { throw null; } init { } } + + public JsonTypeInfo PropertyTypeInfo { get { throw null; } init { } } + + public Action? Setter { get { throw null; } init { } } + } + + public abstract partial class JsonTypeInfo + { + internal JsonTypeInfo() { } + + public JsonConverter Converter { get { throw null; } } + + public Func? CreateObject { get { throw null; } set { } } + + public bool IsReadOnly { get { throw null; } } + + public JsonTypeInfoKind Kind { get { throw null; } } + + public JsonNumberHandling? NumberHandling { get { throw null; } set { } } + + public Action? OnDeserialized { get { throw null; } set { } } + + public Action? OnDeserializing { get { throw null; } set { } } + + public Action? OnSerialized { get { throw null; } set { } } + + public Action? OnSerializing { get { throw null; } set { } } + + public JsonSerializerOptions Options { get { throw null; } } + + public IJsonTypeInfoResolver? OriginatingResolver { get { throw null; } set { } } + + public JsonPolymorphismOptions? PolymorphismOptions { get { throw null; } set { } } + + public JsonObjectCreationHandling? PreferredPropertyObjectCreationHandling { get { throw null; } set { } } + + public Collections.Generic.IList Properties { get { throw null; } } + + public Type Type { get { throw null; } } + + public JsonUnmappedMemberHandling? UnmappedMemberHandling { get { throw null; } set { } } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public JsonPropertyInfo CreateJsonPropertyInfo(Type propertyType, string name) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static JsonTypeInfo CreateJsonTypeInfo(Type type, JsonSerializerOptions options) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static JsonTypeInfo CreateJsonTypeInfo(JsonSerializerOptions options) { throw null; } + + public void MakeReadOnly() { } + } + + public enum JsonTypeInfoKind + { + None = 0, + Object = 1, + Enumerable = 2, + Dictionary = 3 + } + + public static partial class JsonTypeInfoResolver + { + public static IJsonTypeInfoResolver Combine(params IJsonTypeInfoResolver?[] resolvers) { throw null; } + + public static IJsonTypeInfoResolver WithAddedModifier(this IJsonTypeInfoResolver resolver, Action modifier) { throw null; } + } + + public sealed partial class JsonTypeInfo : JsonTypeInfo + { + internal JsonTypeInfo() { } + + public new Func? CreateObject { get { throw null; } set { } } + + public Action? SerializeHandler { get { throw null; } } + } +} \ No newline at end of file diff --git a/src/referencePackages/src/system.text.json/8.0.3/lib/net8.0/System.Text.Json.cs b/src/referencePackages/src/system.text.json/8.0.3/lib/net8.0/System.Text.Json.cs new file mode 100644 index 0000000000..caa8fc9c01 --- /dev/null +++ b/src/referencePackages/src/system.text.json/8.0.3/lib/net8.0/System.Text.Json.cs @@ -0,0 +1,2201 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. +// ------------------------------------------------------------------------------ +// Changes to this file must follow the http://aka.ms/api-review process. +// ------------------------------------------------------------------------------ +[assembly: System.Runtime.CompilerServices.CompilationRelaxations(8)] +[assembly: System.Runtime.CompilerServices.RuntimeCompatibility(WrapNonExceptionThrows = true)] +[assembly: System.Diagnostics.Debuggable(System.Diagnostics.DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] +[assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")] +[assembly: System.Reflection.AssemblyMetadata("Serviceable", "True")] +[assembly: System.Reflection.AssemblyMetadata("PreferInbox", "True")] +[assembly: System.Reflection.AssemblyDefaultAlias("System.Text.Json")] +[assembly: System.Resources.NeutralResourcesLanguage("en-US")] +[assembly: System.CLSCompliant(true)] +[assembly: System.Reflection.AssemblyMetadata("IsTrimmable", "True")] +[assembly: System.Runtime.InteropServices.DefaultDllImportSearchPaths(System.Runtime.InteropServices.DllImportSearchPath.AssemblyDirectory | System.Runtime.InteropServices.DllImportSearchPath.System32)] +[assembly: System.Reflection.AssemblyCompany("Microsoft Corporation")] +[assembly: System.Reflection.AssemblyCopyright("© Microsoft Corporation. All rights reserved.")] +[assembly: System.Reflection.AssemblyDescription("Provides high-performance and low-allocating types that serialize objects to JavaScript Object Notation (JSON) text and deserialize JSON text to objects, with UTF-8 support built-in. Also provides types to read and write JSON text encoded as UTF-8, and to create an in-memory document object model (DOM), that is read-only, for random access of the JSON elements within a structured view of the data.\r\n\r\nThe System.Text.Json library is built-in as part of the shared framework in .NET Runtime. The package can be installed when you need to use it in other target frameworks.")] +[assembly: System.Reflection.AssemblyFileVersion("8.0.324.11423")] +[assembly: System.Reflection.AssemblyInformationalVersion("8.0.3+9f4b1f5d664afdfc80e1508ab7ed099dff210fbd")] +[assembly: System.Reflection.AssemblyProduct("Microsoft® .NET")] +[assembly: System.Reflection.AssemblyTitle("System.Text.Json")] +[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/dotnet/runtime")] +[assembly: System.Reflection.AssemblyVersionAttribute("8.0.0.0")] +[assembly: System.Runtime.CompilerServices.ReferenceAssembly] +[assembly: System.Reflection.AssemblyFlagsAttribute((System.Reflection.AssemblyNameFlags)0x70)] +[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.CompilerServices.IsExternalInit))] +namespace System.Text.Json +{ + public enum JsonCommentHandling : byte + { + Disallow = 0, + Skip = 1, + Allow = 2 + } + + public sealed partial class JsonDocument : IDisposable + { + internal JsonDocument() { } + + public JsonElement RootElement { get { throw null; } } + + public void Dispose() { } + + public static JsonDocument Parse(Buffers.ReadOnlySequence utf8Json, JsonDocumentOptions options = default) { throw null; } + + public static JsonDocument Parse(IO.Stream utf8Json, JsonDocumentOptions options = default) { throw null; } + + public static JsonDocument Parse(ReadOnlyMemory utf8Json, JsonDocumentOptions options = default) { throw null; } + + public static JsonDocument Parse(ReadOnlyMemory json, JsonDocumentOptions options = default) { throw null; } + + public static JsonDocument Parse(string json, JsonDocumentOptions options = default) { throw null; } + + public static Threading.Tasks.Task ParseAsync(IO.Stream utf8Json, JsonDocumentOptions options = default, Threading.CancellationToken cancellationToken = default) { throw null; } + + public static JsonDocument ParseValue(ref Utf8JsonReader reader) { throw null; } + + public static bool TryParseValue(ref Utf8JsonReader reader, out JsonDocument? document) { throw null; } + + public void WriteTo(Utf8JsonWriter writer) { } + } + + public partial struct JsonDocumentOptions + { + private int _dummyPrimitive; + public bool AllowTrailingCommas { get { throw null; } set { } } + + public JsonCommentHandling CommentHandling { get { throw null; } set { } } + + public int MaxDepth { get { throw null; } set { } } + } + + public readonly partial struct JsonElement + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public JsonElement this[int index] { get { throw null; } } + + public JsonValueKind ValueKind { get { throw null; } } + + public readonly JsonElement Clone() { throw null; } + + public readonly ArrayEnumerator EnumerateArray() { throw null; } + + public readonly ObjectEnumerator EnumerateObject() { throw null; } + + public readonly int GetArrayLength() { throw null; } + + public readonly bool GetBoolean() { throw null; } + + public readonly byte GetByte() { throw null; } + + public readonly byte[] GetBytesFromBase64() { throw null; } + + public readonly DateTime GetDateTime() { throw null; } + + public readonly DateTimeOffset GetDateTimeOffset() { throw null; } + + public readonly decimal GetDecimal() { throw null; } + + public readonly double GetDouble() { throw null; } + + public readonly Guid GetGuid() { throw null; } + + public readonly short GetInt16() { throw null; } + + public readonly int GetInt32() { throw null; } + + public readonly long GetInt64() { throw null; } + + public readonly JsonElement GetProperty(ReadOnlySpan utf8PropertyName) { throw null; } + + public readonly JsonElement GetProperty(ReadOnlySpan propertyName) { throw null; } + + public readonly JsonElement GetProperty(string propertyName) { throw null; } + + public readonly string GetRawText() { throw null; } + + [CLSCompliant(false)] + public readonly sbyte GetSByte() { throw null; } + + public readonly float GetSingle() { throw null; } + + public readonly string? GetString() { throw null; } + + [CLSCompliant(false)] + public readonly ushort GetUInt16() { throw null; } + + [CLSCompliant(false)] + public readonly uint GetUInt32() { throw null; } + + [CLSCompliant(false)] + public readonly ulong GetUInt64() { throw null; } + + public static JsonElement ParseValue(ref Utf8JsonReader reader) { throw null; } + + public override readonly string ToString() { throw null; } + + public readonly bool TryGetByte(out byte value) { throw null; } + + public readonly bool TryGetBytesFromBase64(out byte[]? value) { throw null; } + + public readonly bool TryGetDateTime(out DateTime value) { throw null; } + + public readonly bool TryGetDateTimeOffset(out DateTimeOffset value) { throw null; } + + public readonly bool TryGetDecimal(out decimal value) { throw null; } + + public readonly bool TryGetDouble(out double value) { throw null; } + + public readonly bool TryGetGuid(out Guid value) { throw null; } + + public readonly bool TryGetInt16(out short value) { throw null; } + + public readonly bool TryGetInt32(out int value) { throw null; } + + public readonly bool TryGetInt64(out long value) { throw null; } + + public readonly bool TryGetProperty(ReadOnlySpan utf8PropertyName, out JsonElement value) { throw null; } + + public readonly bool TryGetProperty(ReadOnlySpan propertyName, out JsonElement value) { throw null; } + + public readonly bool TryGetProperty(string propertyName, out JsonElement value) { throw null; } + + [CLSCompliant(false)] + public readonly bool TryGetSByte(out sbyte value) { throw null; } + + public readonly bool TryGetSingle(out float value) { throw null; } + + [CLSCompliant(false)] + public readonly bool TryGetUInt16(out ushort value) { throw null; } + + [CLSCompliant(false)] + public readonly bool TryGetUInt32(out uint value) { throw null; } + + [CLSCompliant(false)] + public readonly bool TryGetUInt64(out ulong value) { throw null; } + + public static bool TryParseValue(ref Utf8JsonReader reader, out JsonElement? element) { throw null; } + + public readonly bool ValueEquals(ReadOnlySpan utf8Text) { throw null; } + + public readonly bool ValueEquals(ReadOnlySpan text) { throw null; } + + public readonly bool ValueEquals(string? text) { throw null; } + + public readonly void WriteTo(Utf8JsonWriter writer) { } + + public partial struct ArrayEnumerator : Collections.Generic.IEnumerable, Collections.IEnumerable, Collections.Generic.IEnumerator, Collections.IEnumerator, IDisposable + { + private int _dummyPrimitive; + public JsonElement Current { get { throw null; } } + + object Collections.IEnumerator.Current { get { throw null; } } + + public void Dispose() { } + + public ArrayEnumerator GetEnumerator() { throw null; } + + public bool MoveNext() { throw null; } + + public void Reset() { } + + Collections.Generic.IEnumerator Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + + Collections.IEnumerator Collections.IEnumerable.GetEnumerator() { throw null; } + } + + public partial struct ObjectEnumerator : Collections.Generic.IEnumerable, Collections.IEnumerable, Collections.Generic.IEnumerator, Collections.IEnumerator, IDisposable + { + private int _dummyPrimitive; + public JsonProperty Current { get { throw null; } } + + object Collections.IEnumerator.Current { get { throw null; } } + + public void Dispose() { } + + public ObjectEnumerator GetEnumerator() { throw null; } + + public bool MoveNext() { throw null; } + + public void Reset() { } + + Collections.Generic.IEnumerator Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + + Collections.IEnumerator Collections.IEnumerable.GetEnumerator() { throw null; } + } + } + + public readonly partial struct JsonEncodedText : IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ReadOnlySpan EncodedUtf8Bytes { get { throw null; } } + + public string Value { get { throw null; } } + + public static JsonEncodedText Encode(ReadOnlySpan utf8Value, Encodings.Web.JavaScriptEncoder? encoder = null) { throw null; } + + public static JsonEncodedText Encode(ReadOnlySpan value, Encodings.Web.JavaScriptEncoder? encoder = null) { throw null; } + + public static JsonEncodedText Encode(string value, Encodings.Web.JavaScriptEncoder? encoder = null) { throw null; } + + public override readonly bool Equals(object? obj) { throw null; } + + public readonly bool Equals(JsonEncodedText other) { throw null; } + + public override readonly int GetHashCode() { throw null; } + + public override readonly string ToString() { throw null; } + } + + public partial class JsonException : Exception + { + public JsonException() { } + + [Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId = "SYSLIB0051", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")] + protected JsonException(Runtime.Serialization.SerializationInfo info, Runtime.Serialization.StreamingContext context) { } + + public JsonException(string? message, Exception? innerException) { } + + public JsonException(string? message, string? path, long? lineNumber, long? bytePositionInLine, Exception? innerException) { } + + public JsonException(string? message, string? path, long? lineNumber, long? bytePositionInLine) { } + + public JsonException(string? message) { } + + public long? BytePositionInLine { get { throw null; } } + + public long? LineNumber { get { throw null; } } + + public override string Message { get { throw null; } } + + public string? Path { get { throw null; } } + + [Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId = "SYSLIB0051", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")] + public override void GetObjectData(Runtime.Serialization.SerializationInfo info, Runtime.Serialization.StreamingContext context) { } + } + + public abstract partial class JsonNamingPolicy + { + public static JsonNamingPolicy CamelCase { get { throw null; } } + + public static JsonNamingPolicy KebabCaseLower { get { throw null; } } + + public static JsonNamingPolicy KebabCaseUpper { get { throw null; } } + + public static JsonNamingPolicy SnakeCaseLower { get { throw null; } } + + public static JsonNamingPolicy SnakeCaseUpper { get { throw null; } } + + public abstract string ConvertName(string name); + } + + public readonly partial struct JsonProperty + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public string Name { get { throw null; } } + + public JsonElement Value { get { throw null; } } + + public readonly bool NameEquals(ReadOnlySpan utf8Text) { throw null; } + + public readonly bool NameEquals(ReadOnlySpan text) { throw null; } + + public readonly bool NameEquals(string? text) { throw null; } + + public override readonly string ToString() { throw null; } + + public readonly void WriteTo(Utf8JsonWriter writer) { } + } + + public partial struct JsonReaderOptions + { + private int _dummyPrimitive; + public bool AllowTrailingCommas { get { throw null; } set { } } + + public JsonCommentHandling CommentHandling { get { throw null; } set { } } + + public int MaxDepth { get { throw null; } set { } } + } + + public partial struct JsonReaderState + { + private int _dummyPrimitive; + public JsonReaderState(JsonReaderOptions options = default) { } + + public JsonReaderOptions Options { get { throw null; } } + } + + public static partial class JsonSerializer + { + public static bool IsReflectionEnabledByDefault { get { throw null; } } + + public static object? Deserialize(IO.Stream utf8Json, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static object? Deserialize(IO.Stream utf8Json, Type returnType, JsonSerializerOptions? options = null) { throw null; } + + public static object? Deserialize(IO.Stream utf8Json, Type returnType, Serialization.JsonSerializerContext context) { throw null; } + + public static object? Deserialize(ReadOnlySpan utf8Json, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static object? Deserialize(ReadOnlySpan utf8Json, Type returnType, JsonSerializerOptions? options = null) { throw null; } + + public static object? Deserialize(ReadOnlySpan utf8Json, Type returnType, Serialization.JsonSerializerContext context) { throw null; } + + public static object? Deserialize(ReadOnlySpan json, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static object? Deserialize(ReadOnlySpan json, Type returnType, JsonSerializerOptions? options = null) { throw null; } + + public static object? Deserialize(ReadOnlySpan json, Type returnType, Serialization.JsonSerializerContext context) { throw null; } + + public static object? Deserialize(string json, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static object? Deserialize(string json, Type returnType, JsonSerializerOptions? options = null) { throw null; } + + public static object? Deserialize(string json, Type returnType, Serialization.JsonSerializerContext context) { throw null; } + + public static object? Deserialize(this JsonDocument document, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static object? Deserialize(this JsonDocument document, Type returnType, JsonSerializerOptions? options = null) { throw null; } + + public static object? Deserialize(this JsonDocument document, Type returnType, Serialization.JsonSerializerContext context) { throw null; } + + public static object? Deserialize(this JsonElement element, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static object? Deserialize(this JsonElement element, Type returnType, JsonSerializerOptions? options = null) { throw null; } + + public static object? Deserialize(this JsonElement element, Type returnType, Serialization.JsonSerializerContext context) { throw null; } + + public static object? Deserialize(this Nodes.JsonNode? node, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static object? Deserialize(this Nodes.JsonNode? node, Type returnType, JsonSerializerOptions? options = null) { throw null; } + + public static object? Deserialize(this Nodes.JsonNode? node, Type returnType, Serialization.JsonSerializerContext context) { throw null; } + + public static object? Deserialize(ref Utf8JsonReader reader, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static object? Deserialize(ref Utf8JsonReader reader, Type returnType, JsonSerializerOptions? options = null) { throw null; } + + public static object? Deserialize(ref Utf8JsonReader reader, Type returnType, Serialization.JsonSerializerContext context) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static TValue? Deserialize(IO.Stream utf8Json, JsonSerializerOptions? options = null) { throw null; } + + public static TValue? Deserialize(IO.Stream utf8Json, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static TValue? Deserialize(ReadOnlySpan utf8Json, JsonSerializerOptions? options = null) { throw null; } + + public static TValue? Deserialize(ReadOnlySpan utf8Json, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static TValue? Deserialize(ReadOnlySpan json, JsonSerializerOptions? options = null) { throw null; } + + public static TValue? Deserialize(ReadOnlySpan json, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static TValue? Deserialize(string json, JsonSerializerOptions? options = null) { throw null; } + + public static TValue? Deserialize(string json, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static TValue? Deserialize(this JsonDocument document, JsonSerializerOptions? options = null) { throw null; } + + public static TValue? Deserialize(this JsonDocument document, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static TValue? Deserialize(this JsonElement element, JsonSerializerOptions? options = null) { throw null; } + + public static TValue? Deserialize(this JsonElement element, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static TValue? Deserialize(this Nodes.JsonNode? node, JsonSerializerOptions? options = null) { throw null; } + + public static TValue? Deserialize(this Nodes.JsonNode? node, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static TValue? Deserialize(ref Utf8JsonReader reader, JsonSerializerOptions? options = null) { throw null; } + + public static TValue? Deserialize(ref Utf8JsonReader reader, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + public static Threading.Tasks.ValueTask DeserializeAsync(IO.Stream utf8Json, Serialization.Metadata.JsonTypeInfo jsonTypeInfo, Threading.CancellationToken cancellationToken = default) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static Threading.Tasks.ValueTask DeserializeAsync(IO.Stream utf8Json, Type returnType, JsonSerializerOptions? options = null, Threading.CancellationToken cancellationToken = default) { throw null; } + + public static Threading.Tasks.ValueTask DeserializeAsync(IO.Stream utf8Json, Type returnType, Serialization.JsonSerializerContext context, Threading.CancellationToken cancellationToken = default) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static Threading.Tasks.ValueTask DeserializeAsync(IO.Stream utf8Json, JsonSerializerOptions? options = null, Threading.CancellationToken cancellationToken = default) { throw null; } + + public static Threading.Tasks.ValueTask DeserializeAsync(IO.Stream utf8Json, Serialization.Metadata.JsonTypeInfo jsonTypeInfo, Threading.CancellationToken cancellationToken = default) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static Collections.Generic.IAsyncEnumerable DeserializeAsyncEnumerable(IO.Stream utf8Json, JsonSerializerOptions? options = null, Threading.CancellationToken cancellationToken = default) { throw null; } + + public static Collections.Generic.IAsyncEnumerable DeserializeAsyncEnumerable(IO.Stream utf8Json, Serialization.Metadata.JsonTypeInfo jsonTypeInfo, Threading.CancellationToken cancellationToken = default) { throw null; } + + public static void Serialize(IO.Stream utf8Json, object? value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static void Serialize(IO.Stream utf8Json, object? value, Type inputType, JsonSerializerOptions? options = null) { } + + public static void Serialize(IO.Stream utf8Json, object? value, Type inputType, Serialization.JsonSerializerContext context) { } + + public static string Serialize(object? value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static string Serialize(object? value, Type inputType, JsonSerializerOptions? options = null) { throw null; } + + public static string Serialize(object? value, Type inputType, Serialization.JsonSerializerContext context) { throw null; } + + public static void Serialize(Utf8JsonWriter writer, object? value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static void Serialize(Utf8JsonWriter writer, object? value, Type inputType, JsonSerializerOptions? options = null) { } + + public static void Serialize(Utf8JsonWriter writer, object? value, Type inputType, Serialization.JsonSerializerContext context) { } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static string Serialize(TValue value, JsonSerializerOptions? options = null) { throw null; } + + public static string Serialize(TValue value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static void Serialize(IO.Stream utf8Json, TValue value, JsonSerializerOptions? options = null) { } + + public static void Serialize(IO.Stream utf8Json, TValue value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static void Serialize(Utf8JsonWriter writer, TValue value, JsonSerializerOptions? options = null) { } + + public static void Serialize(Utf8JsonWriter writer, TValue value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { } + + public static Threading.Tasks.Task SerializeAsync(IO.Stream utf8Json, object? value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo, Threading.CancellationToken cancellationToken = default) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static Threading.Tasks.Task SerializeAsync(IO.Stream utf8Json, object? value, Type inputType, JsonSerializerOptions? options = null, Threading.CancellationToken cancellationToken = default) { throw null; } + + public static Threading.Tasks.Task SerializeAsync(IO.Stream utf8Json, object? value, Type inputType, Serialization.JsonSerializerContext context, Threading.CancellationToken cancellationToken = default) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static Threading.Tasks.Task SerializeAsync(IO.Stream utf8Json, TValue value, JsonSerializerOptions? options = null, Threading.CancellationToken cancellationToken = default) { throw null; } + + public static Threading.Tasks.Task SerializeAsync(IO.Stream utf8Json, TValue value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo, Threading.CancellationToken cancellationToken = default) { throw null; } + + public static JsonDocument SerializeToDocument(object? value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static JsonDocument SerializeToDocument(object? value, Type inputType, JsonSerializerOptions? options = null) { throw null; } + + public static JsonDocument SerializeToDocument(object? value, Type inputType, Serialization.JsonSerializerContext context) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static JsonDocument SerializeToDocument(TValue value, JsonSerializerOptions? options = null) { throw null; } + + public static JsonDocument SerializeToDocument(TValue value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + public static JsonElement SerializeToElement(object? value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static JsonElement SerializeToElement(object? value, Type inputType, JsonSerializerOptions? options = null) { throw null; } + + public static JsonElement SerializeToElement(object? value, Type inputType, Serialization.JsonSerializerContext context) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static JsonElement SerializeToElement(TValue value, JsonSerializerOptions? options = null) { throw null; } + + public static JsonElement SerializeToElement(TValue value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + public static Nodes.JsonNode? SerializeToNode(object? value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static Nodes.JsonNode? SerializeToNode(object? value, Type inputType, JsonSerializerOptions? options = null) { throw null; } + + public static Nodes.JsonNode? SerializeToNode(object? value, Type inputType, Serialization.JsonSerializerContext context) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static Nodes.JsonNode? SerializeToNode(TValue value, JsonSerializerOptions? options = null) { throw null; } + + public static Nodes.JsonNode? SerializeToNode(TValue value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + public static byte[] SerializeToUtf8Bytes(object? value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static byte[] SerializeToUtf8Bytes(object? value, Type inputType, JsonSerializerOptions? options = null) { throw null; } + + public static byte[] SerializeToUtf8Bytes(object? value, Type inputType, Serialization.JsonSerializerContext context) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static byte[] SerializeToUtf8Bytes(TValue value, JsonSerializerOptions? options = null) { throw null; } + + public static byte[] SerializeToUtf8Bytes(TValue value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + } + + public enum JsonSerializerDefaults + { + General = 0, + Web = 1 + } + + public sealed partial class JsonSerializerOptions + { + public JsonSerializerOptions() { } + + public JsonSerializerOptions(JsonSerializerDefaults defaults) { } + + public JsonSerializerOptions(JsonSerializerOptions options) { } + + public bool AllowTrailingCommas { get { throw null; } set { } } + + public Collections.Generic.IList Converters { get { throw null; } } + + public static JsonSerializerOptions Default { get { throw null; } } + + public int DefaultBufferSize { get { throw null; } set { } } + + public Serialization.JsonIgnoreCondition DefaultIgnoreCondition { get { throw null; } set { } } + + public JsonNamingPolicy? DictionaryKeyPolicy { get { throw null; } set { } } + + public Encodings.Web.JavaScriptEncoder? Encoder { get { throw null; } set { } } + + [Obsolete("JsonSerializerOptions.IgnoreNullValues is obsolete. To ignore null values when serializing, set DefaultIgnoreCondition to JsonIgnoreCondition.WhenWritingNull.", DiagnosticId = "SYSLIB0020", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")] + public bool IgnoreNullValues { get { throw null; } set { } } + + public bool IgnoreReadOnlyFields { get { throw null; } set { } } + + public bool IgnoreReadOnlyProperties { get { throw null; } set { } } + + public bool IncludeFields { get { throw null; } set { } } + + public bool IsReadOnly { get { throw null; } } + + public int MaxDepth { get { throw null; } set { } } + + public Serialization.JsonNumberHandling NumberHandling { get { throw null; } set { } } + + public Serialization.JsonObjectCreationHandling PreferredObjectCreationHandling { get { throw null; } set { } } + + public bool PropertyNameCaseInsensitive { get { throw null; } set { } } + + public JsonNamingPolicy? PropertyNamingPolicy { get { throw null; } set { } } + + public JsonCommentHandling ReadCommentHandling { get { throw null; } set { } } + + public Serialization.ReferenceHandler? ReferenceHandler { get { throw null; } set { } } + + public Serialization.Metadata.IJsonTypeInfoResolver? TypeInfoResolver { get { throw null; } set { } } + + public Collections.Generic.IList TypeInfoResolverChain { get { throw null; } } + + public Serialization.JsonUnknownTypeHandling UnknownTypeHandling { get { throw null; } set { } } + + public Serialization.JsonUnmappedMemberHandling UnmappedMemberHandling { get { throw null; } set { } } + + public bool WriteIndented { get { throw null; } set { } } + + [Obsolete("JsonSerializerOptions.AddContext is obsolete. To register a JsonSerializerContext, use either the TypeInfoResolver or TypeInfoResolverChain properties.", DiagnosticId = "SYSLIB0049", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")] + public void AddContext() + where TContext : Serialization.JsonSerializerContext, new() { } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Getting a converter for a type may require reflection which depends on unreferenced code.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("Getting a converter for a type may require reflection which depends on runtime code generation.")] + public Serialization.JsonConverter GetConverter(Type typeToConvert) { throw null; } + + public Serialization.Metadata.JsonTypeInfo GetTypeInfo(Type type) { throw null; } + + public void MakeReadOnly() { } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Populating unconfigured TypeInfoResolver properties with the reflection resolver requires unreferenced code.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("Populating unconfigured TypeInfoResolver properties with the reflection resolver requires runtime code generation.")] + public void MakeReadOnly(bool populateMissingResolver) { } + + public bool TryGetTypeInfo(Type type, out Serialization.Metadata.JsonTypeInfo? typeInfo) { throw null; } + } + + public enum JsonTokenType : byte + { + None = 0, + StartObject = 1, + EndObject = 2, + StartArray = 3, + EndArray = 4, + PropertyName = 5, + Comment = 6, + String = 7, + Number = 8, + True = 9, + False = 10, + Null = 11 + } + + public enum JsonValueKind : byte + { + Undefined = 0, + Object = 1, + Array = 2, + String = 3, + Number = 4, + True = 5, + False = 6, + Null = 7 + } + + public partial struct JsonWriterOptions + { + private object _dummy; + private int _dummyPrimitive; + public Encodings.Web.JavaScriptEncoder? Encoder { get { throw null; } set { } } + + public bool Indented { get { throw null; } set { } } + + public int MaxDepth { get { throw null; } set { } } + + public bool SkipValidation { get { throw null; } set { } } + } + + public ref partial struct Utf8JsonReader + { + private object _dummy; + private int _dummyPrimitive; + public Utf8JsonReader(Buffers.ReadOnlySequence jsonData, bool isFinalBlock, JsonReaderState state) { } + + public Utf8JsonReader(Buffers.ReadOnlySequence jsonData, JsonReaderOptions options = default) { } + + public Utf8JsonReader(ReadOnlySpan jsonData, bool isFinalBlock, JsonReaderState state) { } + + public Utf8JsonReader(ReadOnlySpan jsonData, JsonReaderOptions options = default) { } + + public long BytesConsumed { get { throw null; } } + + public int CurrentDepth { get { throw null; } } + + public JsonReaderState CurrentState { get { throw null; } } + + public bool HasValueSequence { get { throw null; } } + + public bool IsFinalBlock { get { throw null; } } + + public SequencePosition Position { get { throw null; } } + + public long TokenStartIndex { get { throw null; } } + + public JsonTokenType TokenType { get { throw null; } } + + public bool ValueIsEscaped { get { throw null; } } + + public Buffers.ReadOnlySequence ValueSequence { get { throw null; } } + + public ReadOnlySpan ValueSpan { get { throw null; } } + + public readonly int CopyString(Span utf8Destination) { throw null; } + + public readonly int CopyString(Span destination) { throw null; } + + public bool GetBoolean() { throw null; } + + public byte GetByte() { throw null; } + + public byte[] GetBytesFromBase64() { throw null; } + + public string GetComment() { throw null; } + + public DateTime GetDateTime() { throw null; } + + public DateTimeOffset GetDateTimeOffset() { throw null; } + + public decimal GetDecimal() { throw null; } + + public double GetDouble() { throw null; } + + public Guid GetGuid() { throw null; } + + public short GetInt16() { throw null; } + + public int GetInt32() { throw null; } + + public long GetInt64() { throw null; } + + [CLSCompliant(false)] + public sbyte GetSByte() { throw null; } + + public float GetSingle() { throw null; } + + public string? GetString() { throw null; } + + [CLSCompliant(false)] + public ushort GetUInt16() { throw null; } + + [CLSCompliant(false)] + public uint GetUInt32() { throw null; } + + [CLSCompliant(false)] + public ulong GetUInt64() { throw null; } + + public bool Read() { throw null; } + + public void Skip() { } + + public bool TryGetByte(out byte value) { throw null; } + + public bool TryGetBytesFromBase64(out byte[]? value) { throw null; } + + public bool TryGetDateTime(out DateTime value) { throw null; } + + public bool TryGetDateTimeOffset(out DateTimeOffset value) { throw null; } + + public bool TryGetDecimal(out decimal value) { throw null; } + + public bool TryGetDouble(out double value) { throw null; } + + public bool TryGetGuid(out Guid value) { throw null; } + + public bool TryGetInt16(out short value) { throw null; } + + public bool TryGetInt32(out int value) { throw null; } + + public bool TryGetInt64(out long value) { throw null; } + + [CLSCompliant(false)] + public bool TryGetSByte(out sbyte value) { throw null; } + + public bool TryGetSingle(out float value) { throw null; } + + [CLSCompliant(false)] + public bool TryGetUInt16(out ushort value) { throw null; } + + [CLSCompliant(false)] + public bool TryGetUInt32(out uint value) { throw null; } + + [CLSCompliant(false)] + public bool TryGetUInt64(out ulong value) { throw null; } + + public bool TrySkip() { throw null; } + + public readonly bool ValueTextEquals(ReadOnlySpan utf8Text) { throw null; } + + public readonly bool ValueTextEquals(ReadOnlySpan text) { throw null; } + + public readonly bool ValueTextEquals(string? text) { throw null; } + } + + public sealed partial class Utf8JsonWriter : IDisposable, IAsyncDisposable + { + public Utf8JsonWriter(Buffers.IBufferWriter bufferWriter, JsonWriterOptions options = default) { } + + public Utf8JsonWriter(IO.Stream utf8Json, JsonWriterOptions options = default) { } + + public long BytesCommitted { get { throw null; } } + + public int BytesPending { get { throw null; } } + + public int CurrentDepth { get { throw null; } } + + public JsonWriterOptions Options { get { throw null; } } + + public void Dispose() { } + + public Threading.Tasks.ValueTask DisposeAsync() { throw null; } + + public void Flush() { } + + public Threading.Tasks.Task FlushAsync(Threading.CancellationToken cancellationToken = default) { throw null; } + + public void Reset() { } + + public void Reset(Buffers.IBufferWriter bufferWriter) { } + + public void Reset(IO.Stream utf8Json) { } + + public void WriteBase64String(ReadOnlySpan utf8PropertyName, ReadOnlySpan bytes) { } + + public void WriteBase64String(ReadOnlySpan propertyName, ReadOnlySpan bytes) { } + + public void WriteBase64String(string propertyName, ReadOnlySpan bytes) { } + + public void WriteBase64String(JsonEncodedText propertyName, ReadOnlySpan bytes) { } + + public void WriteBase64StringValue(ReadOnlySpan bytes) { } + + public void WriteBoolean(ReadOnlySpan utf8PropertyName, bool value) { } + + public void WriteBoolean(ReadOnlySpan propertyName, bool value) { } + + public void WriteBoolean(string propertyName, bool value) { } + + public void WriteBoolean(JsonEncodedText propertyName, bool value) { } + + public void WriteBooleanValue(bool value) { } + + public void WriteCommentValue(ReadOnlySpan utf8Value) { } + + public void WriteCommentValue(ReadOnlySpan value) { } + + public void WriteCommentValue(string value) { } + + public void WriteEndArray() { } + + public void WriteEndObject() { } + + public void WriteNull(ReadOnlySpan utf8PropertyName) { } + + public void WriteNull(ReadOnlySpan propertyName) { } + + public void WriteNull(string propertyName) { } + + public void WriteNull(JsonEncodedText propertyName) { } + + public void WriteNullValue() { } + + public void WriteNumber(ReadOnlySpan utf8PropertyName, decimal value) { } + + public void WriteNumber(ReadOnlySpan utf8PropertyName, double value) { } + + public void WriteNumber(ReadOnlySpan utf8PropertyName, int value) { } + + public void WriteNumber(ReadOnlySpan utf8PropertyName, long value) { } + + public void WriteNumber(ReadOnlySpan utf8PropertyName, float value) { } + + [CLSCompliant(false)] + public void WriteNumber(ReadOnlySpan utf8PropertyName, uint value) { } + + [CLSCompliant(false)] + public void WriteNumber(ReadOnlySpan utf8PropertyName, ulong value) { } + + public void WriteNumber(ReadOnlySpan propertyName, decimal value) { } + + public void WriteNumber(ReadOnlySpan propertyName, double value) { } + + public void WriteNumber(ReadOnlySpan propertyName, int value) { } + + public void WriteNumber(ReadOnlySpan propertyName, long value) { } + + public void WriteNumber(ReadOnlySpan propertyName, float value) { } + + [CLSCompliant(false)] + public void WriteNumber(ReadOnlySpan propertyName, uint value) { } + + [CLSCompliant(false)] + public void WriteNumber(ReadOnlySpan propertyName, ulong value) { } + + public void WriteNumber(string propertyName, decimal value) { } + + public void WriteNumber(string propertyName, double value) { } + + public void WriteNumber(string propertyName, int value) { } + + public void WriteNumber(string propertyName, long value) { } + + public void WriteNumber(string propertyName, float value) { } + + [CLSCompliant(false)] + public void WriteNumber(string propertyName, uint value) { } + + [CLSCompliant(false)] + public void WriteNumber(string propertyName, ulong value) { } + + public void WriteNumber(JsonEncodedText propertyName, decimal value) { } + + public void WriteNumber(JsonEncodedText propertyName, double value) { } + + public void WriteNumber(JsonEncodedText propertyName, int value) { } + + public void WriteNumber(JsonEncodedText propertyName, long value) { } + + public void WriteNumber(JsonEncodedText propertyName, float value) { } + + [CLSCompliant(false)] + public void WriteNumber(JsonEncodedText propertyName, uint value) { } + + [CLSCompliant(false)] + public void WriteNumber(JsonEncodedText propertyName, ulong value) { } + + public void WriteNumberValue(decimal value) { } + + public void WriteNumberValue(double value) { } + + public void WriteNumberValue(int value) { } + + public void WriteNumberValue(long value) { } + + public void WriteNumberValue(float value) { } + + [CLSCompliant(false)] + public void WriteNumberValue(uint value) { } + + [CLSCompliant(false)] + public void WriteNumberValue(ulong value) { } + + public void WritePropertyName(ReadOnlySpan utf8PropertyName) { } + + public void WritePropertyName(ReadOnlySpan propertyName) { } + + public void WritePropertyName(string propertyName) { } + + public void WritePropertyName(JsonEncodedText propertyName) { } + + public void WriteRawValue(Buffers.ReadOnlySequence utf8Json, bool skipInputValidation = false) { } + + public void WriteRawValue(ReadOnlySpan utf8Json, bool skipInputValidation = false) { } + + public void WriteRawValue(ReadOnlySpan json, bool skipInputValidation = false) { } + + public void WriteRawValue(string json, bool skipInputValidation = false) { } + + public void WriteStartArray() { } + + public void WriteStartArray(ReadOnlySpan utf8PropertyName) { } + + public void WriteStartArray(ReadOnlySpan propertyName) { } + + public void WriteStartArray(string propertyName) { } + + public void WriteStartArray(JsonEncodedText propertyName) { } + + public void WriteStartObject() { } + + public void WriteStartObject(ReadOnlySpan utf8PropertyName) { } + + public void WriteStartObject(ReadOnlySpan propertyName) { } + + public void WriteStartObject(string propertyName) { } + + public void WriteStartObject(JsonEncodedText propertyName) { } + + public void WriteString(ReadOnlySpan utf8PropertyName, DateTime value) { } + + public void WriteString(ReadOnlySpan utf8PropertyName, DateTimeOffset value) { } + + public void WriteString(ReadOnlySpan utf8PropertyName, Guid value) { } + + public void WriteString(ReadOnlySpan utf8PropertyName, ReadOnlySpan utf8Value) { } + + public void WriteString(ReadOnlySpan utf8PropertyName, ReadOnlySpan value) { } + + public void WriteString(ReadOnlySpan utf8PropertyName, string? value) { } + + public void WriteString(ReadOnlySpan utf8PropertyName, JsonEncodedText value) { } + + public void WriteString(ReadOnlySpan propertyName, DateTime value) { } + + public void WriteString(ReadOnlySpan propertyName, DateTimeOffset value) { } + + public void WriteString(ReadOnlySpan propertyName, Guid value) { } + + public void WriteString(ReadOnlySpan propertyName, ReadOnlySpan utf8Value) { } + + public void WriteString(ReadOnlySpan propertyName, ReadOnlySpan value) { } + + public void WriteString(ReadOnlySpan propertyName, string? value) { } + + public void WriteString(ReadOnlySpan propertyName, JsonEncodedText value) { } + + public void WriteString(string propertyName, DateTime value) { } + + public void WriteString(string propertyName, DateTimeOffset value) { } + + public void WriteString(string propertyName, Guid value) { } + + public void WriteString(string propertyName, ReadOnlySpan utf8Value) { } + + public void WriteString(string propertyName, ReadOnlySpan value) { } + + public void WriteString(string propertyName, string? value) { } + + public void WriteString(string propertyName, JsonEncodedText value) { } + + public void WriteString(JsonEncodedText propertyName, DateTime value) { } + + public void WriteString(JsonEncodedText propertyName, DateTimeOffset value) { } + + public void WriteString(JsonEncodedText propertyName, Guid value) { } + + public void WriteString(JsonEncodedText propertyName, ReadOnlySpan utf8Value) { } + + public void WriteString(JsonEncodedText propertyName, ReadOnlySpan value) { } + + public void WriteString(JsonEncodedText propertyName, string? value) { } + + public void WriteString(JsonEncodedText propertyName, JsonEncodedText value) { } + + public void WriteStringValue(DateTime value) { } + + public void WriteStringValue(DateTimeOffset value) { } + + public void WriteStringValue(Guid value) { } + + public void WriteStringValue(ReadOnlySpan utf8Value) { } + + public void WriteStringValue(ReadOnlySpan value) { } + + public void WriteStringValue(string? value) { } + + public void WriteStringValue(JsonEncodedText value) { } + } +} + +namespace System.Text.Json.Nodes +{ + public sealed partial class JsonArray : JsonNode, Collections.Generic.IList, Collections.Generic.ICollection, Collections.Generic.IEnumerable, Collections.IEnumerable + { + public JsonArray(JsonNodeOptions? options = null) { } + + public JsonArray(params JsonNode?[] items) { } + + public JsonArray(JsonNodeOptions options, params JsonNode?[] items) { } + + public int Count { get { throw null; } } + + bool Collections.Generic.ICollection.IsReadOnly { get { throw null; } } + + public void Add(JsonNode? item) { } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Creating JsonValue instances with non-primitive types is not compatible with trimming. It can result in non-primitive types being serialized, which may have their members trimmed.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("Creating JsonValue instances with non-primitive types requires generating code at runtime.")] + public void Add(T? value) { } + + public void Clear() { } + + public bool Contains(JsonNode? item) { throw null; } + + public static JsonArray? Create(JsonElement element, JsonNodeOptions? options = null) { throw null; } + + public Collections.Generic.IEnumerator GetEnumerator() { throw null; } + + public Collections.Generic.IEnumerable GetValues() { throw null; } + + public int IndexOf(JsonNode? item) { throw null; } + + public void Insert(int index, JsonNode? item) { } + + public bool Remove(JsonNode? item) { throw null; } + + public void RemoveAt(int index) { } + + void Collections.Generic.ICollection.CopyTo(JsonNode[] array, int index) { } + + Collections.IEnumerator? Collections.IEnumerable.GetEnumerator() { throw null; } + + public override void WriteTo(Utf8JsonWriter writer, JsonSerializerOptions? options = null) { } + } + + public abstract partial class JsonNode + { + internal JsonNode() { } + + public JsonNode? this[int index] { get { throw null; } set { } } + + public JsonNode? this[string propertyName] { get { throw null; } set { } } + + public JsonNodeOptions? Options { get { throw null; } } + + public JsonNode? Parent { get { throw null; } } + + public JsonNode Root { get { throw null; } } + + public JsonArray AsArray() { throw null; } + + public JsonObject AsObject() { throw null; } + + public JsonValue AsValue() { throw null; } + + public JsonNode DeepClone() { throw null; } + + public static bool DeepEquals(JsonNode? node1, JsonNode? node2) { throw null; } + + public int GetElementIndex() { throw null; } + + public string GetPath() { throw null; } + + public string GetPropertyName() { throw null; } + + public virtual T GetValue() { throw null; } + + public JsonValueKind GetValueKind() { throw null; } + + public static explicit operator bool(JsonNode value) { throw null; } + + public static explicit operator byte(JsonNode value) { throw null; } + + public static explicit operator char(JsonNode value) { throw null; } + + public static explicit operator DateTime(JsonNode value) { throw null; } + + public static explicit operator DateTimeOffset(JsonNode value) { throw null; } + + public static explicit operator decimal(JsonNode value) { throw null; } + + public static explicit operator double(JsonNode value) { throw null; } + + public static explicit operator Guid(JsonNode value) { throw null; } + + public static explicit operator short(JsonNode value) { throw null; } + + public static explicit operator int(JsonNode value) { throw null; } + + public static explicit operator long(JsonNode value) { throw null; } + + public static explicit operator bool?(JsonNode? value) { throw null; } + + public static explicit operator byte?(JsonNode? value) { throw null; } + + public static explicit operator char?(JsonNode? value) { throw null; } + + public static explicit operator DateTime?(JsonNode? value) { throw null; } + + public static explicit operator DateTimeOffset?(JsonNode? value) { throw null; } + + public static explicit operator decimal?(JsonNode? value) { throw null; } + + public static explicit operator double?(JsonNode? value) { throw null; } + + public static explicit operator Guid?(JsonNode? value) { throw null; } + + public static explicit operator short?(JsonNode? value) { throw null; } + + public static explicit operator int?(JsonNode? value) { throw null; } + + public static explicit operator long?(JsonNode? value) { throw null; } + + [CLSCompliant(false)] + public static explicit operator sbyte?(JsonNode? value) { throw null; } + + public static explicit operator float?(JsonNode? value) { throw null; } + + [CLSCompliant(false)] + public static explicit operator ushort?(JsonNode? value) { throw null; } + + [CLSCompliant(false)] + public static explicit operator uint?(JsonNode? value) { throw null; } + + [CLSCompliant(false)] + public static explicit operator ulong?(JsonNode? value) { throw null; } + + [CLSCompliant(false)] + public static explicit operator sbyte(JsonNode value) { throw null; } + + public static explicit operator float(JsonNode value) { throw null; } + + public static explicit operator string?(JsonNode? value) { throw null; } + + [CLSCompliant(false)] + public static explicit operator ushort(JsonNode value) { throw null; } + + [CLSCompliant(false)] + public static explicit operator uint(JsonNode value) { throw null; } + + [CLSCompliant(false)] + public static explicit operator ulong(JsonNode value) { throw null; } + + public static implicit operator JsonNode(bool value) { throw null; } + + public static implicit operator JsonNode(byte value) { throw null; } + + public static implicit operator JsonNode(char value) { throw null; } + + public static implicit operator JsonNode(DateTime value) { throw null; } + + public static implicit operator JsonNode(DateTimeOffset value) { throw null; } + + public static implicit operator JsonNode(decimal value) { throw null; } + + public static implicit operator JsonNode(double value) { throw null; } + + public static implicit operator JsonNode(Guid value) { throw null; } + + public static implicit operator JsonNode(short value) { throw null; } + + public static implicit operator JsonNode(int value) { throw null; } + + public static implicit operator JsonNode(long value) { throw null; } + + public static implicit operator JsonNode?(bool? value) { throw null; } + + public static implicit operator JsonNode?(byte? value) { throw null; } + + public static implicit operator JsonNode?(char? value) { throw null; } + + public static implicit operator JsonNode?(DateTime? value) { throw null; } + + public static implicit operator JsonNode?(DateTimeOffset? value) { throw null; } + + public static implicit operator JsonNode?(decimal? value) { throw null; } + + public static implicit operator JsonNode?(double? value) { throw null; } + + public static implicit operator JsonNode?(Guid? value) { throw null; } + + public static implicit operator JsonNode?(short? value) { throw null; } + + public static implicit operator JsonNode?(int? value) { throw null; } + + public static implicit operator JsonNode?(long? value) { throw null; } + + [CLSCompliant(false)] + public static implicit operator JsonNode?(sbyte? value) { throw null; } + + public static implicit operator JsonNode?(float? value) { throw null; } + + [CLSCompliant(false)] + public static implicit operator JsonNode?(ushort? value) { throw null; } + + [CLSCompliant(false)] + public static implicit operator JsonNode?(uint? value) { throw null; } + + [CLSCompliant(false)] + public static implicit operator JsonNode?(ulong? value) { throw null; } + + [CLSCompliant(false)] + public static implicit operator JsonNode(sbyte value) { throw null; } + + public static implicit operator JsonNode(float value) { throw null; } + + public static implicit operator JsonNode?(string? value) { throw null; } + + [CLSCompliant(false)] + public static implicit operator JsonNode(ushort value) { throw null; } + + [CLSCompliant(false)] + public static implicit operator JsonNode(uint value) { throw null; } + + [CLSCompliant(false)] + public static implicit operator JsonNode(ulong value) { throw null; } + + public static JsonNode? Parse(IO.Stream utf8Json, JsonNodeOptions? nodeOptions = null, JsonDocumentOptions documentOptions = default) { throw null; } + + public static JsonNode? Parse(ReadOnlySpan utf8Json, JsonNodeOptions? nodeOptions = null, JsonDocumentOptions documentOptions = default) { throw null; } + + public static JsonNode? Parse(string json, JsonNodeOptions? nodeOptions = null, JsonDocumentOptions documentOptions = default) { throw null; } + + public static JsonNode? Parse(ref Utf8JsonReader reader, JsonNodeOptions? nodeOptions = null) { throw null; } + + public static Threading.Tasks.Task ParseAsync(IO.Stream utf8Json, JsonNodeOptions? nodeOptions = null, JsonDocumentOptions documentOptions = default, Threading.CancellationToken cancellationToken = default) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Creating JsonValue instances with non-primitive types is not compatible with trimming. It can result in non-primitive types being serialized, which may have their members trimmed.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("Creating JsonValue instances with non-primitive types requires generating code at runtime.")] + public void ReplaceWith(T value) { } + + public string ToJsonString(JsonSerializerOptions? options = null) { throw null; } + + public override string ToString() { throw null; } + + public abstract void WriteTo(Utf8JsonWriter writer, JsonSerializerOptions? options = null); + } + + public partial struct JsonNodeOptions + { + private int _dummyPrimitive; + public bool PropertyNameCaseInsensitive { get { throw null; } set { } } + } + + public sealed partial class JsonObject : JsonNode, Collections.Generic.IDictionary, Collections.Generic.ICollection>, Collections.Generic.IEnumerable>, Collections.IEnumerable + { + public JsonObject(Collections.Generic.IEnumerable> properties, JsonNodeOptions? options = null) { } + + public JsonObject(JsonNodeOptions? options = null) { } + + public int Count { get { throw null; } } + + bool Collections.Generic.ICollection>.IsReadOnly { get { throw null; } } + + Collections.Generic.ICollection Collections.Generic.IDictionary.Keys { get { throw null; } } + + Collections.Generic.ICollection Collections.Generic.IDictionary.Values { get { throw null; } } + + public void Add(Collections.Generic.KeyValuePair property) { } + + public void Add(string propertyName, JsonNode? value) { } + + public void Clear() { } + + public bool ContainsKey(string propertyName) { throw null; } + + public static JsonObject? Create(JsonElement element, JsonNodeOptions? options = null) { throw null; } + + public Collections.Generic.IEnumerator> GetEnumerator() { throw null; } + + public bool Remove(string propertyName) { throw null; } + + bool Collections.Generic.ICollection>.Contains(Collections.Generic.KeyValuePair item) { throw null; } + + void Collections.Generic.ICollection>.CopyTo(Collections.Generic.KeyValuePair[] array, int index) { } + + bool Collections.Generic.ICollection>.Remove(Collections.Generic.KeyValuePair item) { throw null; } + + bool Collections.Generic.IDictionary.TryGetValue(string propertyName, out JsonNode jsonNode) { throw null; } + + Collections.IEnumerator Collections.IEnumerable.GetEnumerator() { throw null; } + + public bool TryGetPropertyValue(string propertyName, out JsonNode? jsonNode) { throw null; } + + public override void WriteTo(Utf8JsonWriter writer, JsonSerializerOptions? options = null) { } + } + + public abstract partial class JsonValue : JsonNode + { + internal JsonValue() { } + + public static JsonValue Create(bool value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue Create(byte value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue Create(char value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue Create(DateTime value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue Create(DateTimeOffset value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue Create(decimal value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue Create(double value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue Create(Guid value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue Create(short value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue Create(int value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue Create(long value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue? Create(bool? value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue? Create(byte? value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue? Create(char? value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue? Create(DateTime? value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue? Create(DateTimeOffset? value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue? Create(decimal? value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue? Create(double? value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue? Create(Guid? value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue? Create(short? value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue? Create(int? value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue? Create(long? value, JsonNodeOptions? options = null) { throw null; } + + [CLSCompliant(false)] + public static JsonValue? Create(sbyte? value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue? Create(float? value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue? Create(JsonElement? value, JsonNodeOptions? options = null) { throw null; } + + [CLSCompliant(false)] + public static JsonValue? Create(ushort? value, JsonNodeOptions? options = null) { throw null; } + + [CLSCompliant(false)] + public static JsonValue? Create(uint? value, JsonNodeOptions? options = null) { throw null; } + + [CLSCompliant(false)] + public static JsonValue? Create(ulong? value, JsonNodeOptions? options = null) { throw null; } + + [CLSCompliant(false)] + public static JsonValue Create(sbyte value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue Create(float value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue? Create(string? value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue? Create(JsonElement value, JsonNodeOptions? options = null) { throw null; } + + [CLSCompliant(false)] + public static JsonValue Create(ushort value, JsonNodeOptions? options = null) { throw null; } + + [CLSCompliant(false)] + public static JsonValue Create(uint value, JsonNodeOptions? options = null) { throw null; } + + [CLSCompliant(false)] + public static JsonValue Create(ulong value, JsonNodeOptions? options = null) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Creating JsonValue instances with non-primitive types is not compatible with trimming. It can result in non-primitive types being serialized, which may have their members trimmed. Use the overload that takes a JsonTypeInfo, or make sure all of the required types are preserved.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("Creating JsonValue instances with non-primitive types requires generating code at runtime.")] + public static JsonValue? Create(T? value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue? Create(T? value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo, JsonNodeOptions? options = null) { throw null; } + + public abstract bool TryGetValue(out T? value); + } +} + +namespace System.Text.Json.Serialization +{ + public partial interface IJsonOnDeserialized + { + void OnDeserialized(); + } + + public partial interface IJsonOnDeserializing + { + void OnDeserializing(); + } + + public partial interface IJsonOnSerialized + { + void OnSerialized(); + } + + public partial interface IJsonOnSerializing + { + void OnSerializing(); + } + + public abstract partial class JsonAttribute : Attribute + { + } + + [AttributeUsage(AttributeTargets.Constructor, AllowMultiple = false)] + public sealed partial class JsonConstructorAttribute : JsonAttribute + { + } + + public abstract partial class JsonConverter + { + internal JsonConverter() { } + + public abstract Type? Type { get; } + + public abstract bool CanConvert(Type typeToConvert); + } + + [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Interface, AllowMultiple = false)] + public partial class JsonConverterAttribute : JsonAttribute + { + protected JsonConverterAttribute() { } + + public JsonConverterAttribute(Type converterType) { } + + [Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicParameterlessConstructor)] + public Type? ConverterType { get { throw null; } } + + public virtual JsonConverter? CreateConverter(Type typeToConvert) { throw null; } + } + + public abstract partial class JsonConverterFactory : JsonConverter + { + protected JsonConverterFactory() { } + + public sealed override Type? Type { get { throw null; } } + + public abstract JsonConverter? CreateConverter(Type typeToConvert, JsonSerializerOptions options); + } + + public abstract partial class JsonConverter : JsonConverter + { + protected internal JsonConverter() { } + + public virtual bool HandleNull { get { throw null; } } + + public sealed override Type Type { get { throw null; } } + + public override bool CanConvert(Type typeToConvert) { throw null; } + + public abstract T? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options); + public virtual T ReadAsPropertyName(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { throw null; } + + public abstract void Write(Utf8JsonWriter writer, T value, JsonSerializerOptions options); + public virtual void WriteAsPropertyName(Utf8JsonWriter writer, T value, JsonSerializerOptions options) { } + } + + [AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface, AllowMultiple = true, Inherited = false)] + public partial class JsonDerivedTypeAttribute : JsonAttribute + { + public JsonDerivedTypeAttribute(Type derivedType, int typeDiscriminator) { } + + public JsonDerivedTypeAttribute(Type derivedType, string typeDiscriminator) { } + + public JsonDerivedTypeAttribute(Type derivedType) { } + + public Type DerivedType { get { throw null; } } + + public object? TypeDiscriminator { get { throw null; } } + } + + [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)] + public sealed partial class JsonExtensionDataAttribute : JsonAttribute + { + } + + [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)] + public sealed partial class JsonIgnoreAttribute : JsonAttribute + { + public JsonIgnoreCondition Condition { get { throw null; } set { } } + } + + public enum JsonIgnoreCondition + { + Never = 0, + Always = 1, + WhenWritingDefault = 2, + WhenWritingNull = 3 + } + + [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)] + public sealed partial class JsonIncludeAttribute : JsonAttribute + { + } + + public enum JsonKnownNamingPolicy + { + Unspecified = 0, + CamelCase = 1, + SnakeCaseLower = 2, + SnakeCaseUpper = 3, + KebabCaseLower = 4, + KebabCaseUpper = 5 + } + + public sealed partial class JsonNumberEnumConverter : JsonConverterFactory where TEnum : struct, Enum + { + public override bool CanConvert(Type typeToConvert) { throw null; } + + public override JsonConverter? CreateConverter(Type typeToConvert, JsonSerializerOptions options) { throw null; } + } + + [Flags] + public enum JsonNumberHandling + { + Strict = 0, + AllowReadingFromString = 1, + WriteAsString = 2, + AllowNamedFloatingPointLiterals = 4 + } + + [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)] + public sealed partial class JsonNumberHandlingAttribute : JsonAttribute + { + public JsonNumberHandlingAttribute(JsonNumberHandling handling) { } + + public JsonNumberHandling Handling { get { throw null; } } + } + + public enum JsonObjectCreationHandling + { + Replace = 0, + Populate = 1 + } + + [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Interface, AllowMultiple = false)] + public sealed partial class JsonObjectCreationHandlingAttribute : JsonAttribute + { + public JsonObjectCreationHandlingAttribute(JsonObjectCreationHandling handling) { } + + public JsonObjectCreationHandling Handling { get { throw null; } } + } + + [AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface, AllowMultiple = false, Inherited = false)] + public sealed partial class JsonPolymorphicAttribute : JsonAttribute + { + public bool IgnoreUnrecognizedTypeDiscriminators { get { throw null; } set { } } + + public string? TypeDiscriminatorPropertyName { get { throw null; } set { } } + + public JsonUnknownDerivedTypeHandling UnknownDerivedTypeHandling { get { throw null; } set { } } + } + + [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)] + public sealed partial class JsonPropertyNameAttribute : JsonAttribute + { + public JsonPropertyNameAttribute(string name) { } + + public string Name { get { throw null; } } + } + + [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)] + public sealed partial class JsonPropertyOrderAttribute : JsonAttribute + { + public JsonPropertyOrderAttribute(int order) { } + + public int Order { get { throw null; } } + } + + [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)] + public sealed partial class JsonRequiredAttribute : JsonAttribute + { + } + + [AttributeUsage(AttributeTargets.Class, AllowMultiple = true)] + public sealed partial class JsonSerializableAttribute : JsonAttribute + { + public JsonSerializableAttribute(Type type) { } + + public JsonSourceGenerationMode GenerationMode { get { throw null; } set { } } + + public string? TypeInfoPropertyName { get { throw null; } set { } } + } + + public abstract partial class JsonSerializerContext : Metadata.IJsonTypeInfoResolver + { + protected JsonSerializerContext(JsonSerializerOptions? options) { } + + protected abstract JsonSerializerOptions? GeneratedSerializerOptions { get; } + + public JsonSerializerOptions Options { get { throw null; } } + + public abstract Metadata.JsonTypeInfo? GetTypeInfo(Type type); + Metadata.JsonTypeInfo Metadata.IJsonTypeInfoResolver.GetTypeInfo(Type type, JsonSerializerOptions options) { throw null; } + } + + [Flags] + public enum JsonSourceGenerationMode + { + Default = 0, + Metadata = 1, + Serialization = 2 + } + + [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)] + public sealed partial class JsonSourceGenerationOptionsAttribute : JsonAttribute + { + public JsonSourceGenerationOptionsAttribute() { } + + public JsonSourceGenerationOptionsAttribute(JsonSerializerDefaults defaults) { } + + public bool AllowTrailingCommas { get { throw null; } set { } } + + public Type[]? Converters { get { throw null; } set { } } + + public int DefaultBufferSize { get { throw null; } set { } } + + public JsonIgnoreCondition DefaultIgnoreCondition { get { throw null; } set { } } + + public JsonKnownNamingPolicy DictionaryKeyPolicy { get { throw null; } set { } } + + public JsonSourceGenerationMode GenerationMode { get { throw null; } set { } } + + public bool IgnoreReadOnlyFields { get { throw null; } set { } } + + public bool IgnoreReadOnlyProperties { get { throw null; } set { } } + + public bool IncludeFields { get { throw null; } set { } } + + public int MaxDepth { get { throw null; } set { } } + + public JsonNumberHandling NumberHandling { get { throw null; } set { } } + + public JsonObjectCreationHandling PreferredObjectCreationHandling { get { throw null; } set { } } + + public bool PropertyNameCaseInsensitive { get { throw null; } set { } } + + public JsonKnownNamingPolicy PropertyNamingPolicy { get { throw null; } set { } } + + public JsonCommentHandling ReadCommentHandling { get { throw null; } set { } } + + public JsonUnknownTypeHandling UnknownTypeHandling { get { throw null; } set { } } + + public JsonUnmappedMemberHandling UnmappedMemberHandling { get { throw null; } set { } } + + public bool UseStringEnumConverter { get { throw null; } set { } } + + public bool WriteIndented { get { throw null; } set { } } + } + + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JsonStringEnumConverter cannot be statically analyzed and requires runtime code generation. Applications should use the generic JsonStringEnumConverter instead.")] + public partial class JsonStringEnumConverter : JsonConverterFactory + { + public JsonStringEnumConverter() { } + + public JsonStringEnumConverter(JsonNamingPolicy? namingPolicy = null, bool allowIntegerValues = true) { } + + public sealed override bool CanConvert(Type typeToConvert) { throw null; } + + public sealed override JsonConverter CreateConverter(Type typeToConvert, JsonSerializerOptions options) { throw null; } + } + + public partial class JsonStringEnumConverter : JsonConverterFactory where TEnum : struct, Enum + { + public JsonStringEnumConverter() { } + + public JsonStringEnumConverter(JsonNamingPolicy? namingPolicy = null, bool allowIntegerValues = true) { } + + public sealed override bool CanConvert(Type typeToConvert) { throw null; } + + public sealed override JsonConverter? CreateConverter(Type typeToConvert, JsonSerializerOptions options) { throw null; } + } + + public enum JsonUnknownDerivedTypeHandling + { + FailSerialization = 0, + FallBackToBaseType = 1, + FallBackToNearestAncestor = 2 + } + + public enum JsonUnknownTypeHandling + { + JsonElement = 0, + JsonNode = 1 + } + + public enum JsonUnmappedMemberHandling + { + Skip = 0, + Disallow = 1 + } + + [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Interface, AllowMultiple = false, Inherited = false)] + public partial class JsonUnmappedMemberHandlingAttribute : JsonAttribute + { + public JsonUnmappedMemberHandlingAttribute(JsonUnmappedMemberHandling unmappedMemberHandling) { } + + public JsonUnmappedMemberHandling UnmappedMemberHandling { get { throw null; } } + } + + public abstract partial class ReferenceHandler + { + public static ReferenceHandler IgnoreCycles { get { throw null; } } + + public static ReferenceHandler Preserve { get { throw null; } } + + public abstract ReferenceResolver CreateResolver(); + } + + public sealed partial class ReferenceHandler : ReferenceHandler where T : ReferenceResolver, new() + { + public override ReferenceResolver CreateResolver() { throw null; } + } + + public abstract partial class ReferenceResolver + { + public abstract void AddReference(string referenceId, object value); + public abstract string GetReference(object value, out bool alreadyExists); + public abstract object ResolveReference(string referenceId); + } +} + +namespace System.Text.Json.Serialization.Metadata +{ + public partial class DefaultJsonTypeInfoResolver : IJsonTypeInfoResolver + { + public Collections.Generic.IList> Modifiers { get { throw null; } } + + [Diagnostics.CodeAnalysis.UnconditionalSuppressMessage("ReflectionAnalysis", "IL2026:RequiresUnreferencedCode", Justification = "The ctor is marked RequiresUnreferencedCode.")] + [Diagnostics.CodeAnalysis.UnconditionalSuppressMessage("AotAnalysis", "IL3050:RequiresDynamicCode", Justification = "The ctor is marked RequiresDynamicCode.")] + public virtual JsonTypeInfo GetTypeInfo(Type type, JsonSerializerOptions options) { throw null; } + } + + public partial interface IJsonTypeInfoResolver + { + JsonTypeInfo? GetTypeInfo(Type type, JsonSerializerOptions options); + } + + public sealed partial class JsonCollectionInfoValues + { + public JsonTypeInfo ElementInfo { get { throw null; } init { } } + + public JsonTypeInfo? KeyInfo { get { throw null; } init { } } + + public JsonNumberHandling NumberHandling { get { throw null; } init { } } + + public Func? ObjectCreator { get { throw null; } init { } } + + public Action? SerializeHandler { get { throw null; } init { } } + } + + public readonly partial struct JsonDerivedType + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public JsonDerivedType(Type derivedType, int typeDiscriminator) { } + + public JsonDerivedType(Type derivedType, string typeDiscriminator) { } + + public JsonDerivedType(Type derivedType) { } + + public Type DerivedType { get { throw null; } } + + public object? TypeDiscriminator { get { throw null; } } + } + + public static partial class JsonMetadataServices + { + public static JsonConverter BooleanConverter { get { throw null; } } + + public static JsonConverter ByteArrayConverter { get { throw null; } } + + public static JsonConverter ByteConverter { get { throw null; } } + + public static JsonConverter CharConverter { get { throw null; } } + + public static JsonConverter DateOnlyConverter { get { throw null; } } + + public static JsonConverter DateTimeConverter { get { throw null; } } + + public static JsonConverter DateTimeOffsetConverter { get { throw null; } } + + public static JsonConverter DecimalConverter { get { throw null; } } + + public static JsonConverter DoubleConverter { get { throw null; } } + + public static JsonConverter GuidConverter { get { throw null; } } + + public static JsonConverter HalfConverter { get { throw null; } } + + public static JsonConverter Int128Converter { get { throw null; } } + + public static JsonConverter Int16Converter { get { throw null; } } + + public static JsonConverter Int32Converter { get { throw null; } } + + public static JsonConverter Int64Converter { get { throw null; } } + + public static JsonConverter JsonArrayConverter { get { throw null; } } + + public static JsonConverter JsonDocumentConverter { get { throw null; } } + + public static JsonConverter JsonElementConverter { get { throw null; } } + + public static JsonConverter JsonNodeConverter { get { throw null; } } + + public static JsonConverter JsonObjectConverter { get { throw null; } } + + public static JsonConverter JsonValueConverter { get { throw null; } } + + public static JsonConverter> MemoryByteConverter { get { throw null; } } + + public static JsonConverter ObjectConverter { get { throw null; } } + + public static JsonConverter> ReadOnlyMemoryByteConverter { get { throw null; } } + + [CLSCompliant(false)] + public static JsonConverter SByteConverter { get { throw null; } } + + public static JsonConverter SingleConverter { get { throw null; } } + + public static JsonConverter StringConverter { get { throw null; } } + + public static JsonConverter TimeOnlyConverter { get { throw null; } } + + public static JsonConverter TimeSpanConverter { get { throw null; } } + + [CLSCompliant(false)] + public static JsonConverter UInt128Converter { get { throw null; } } + + [CLSCompliant(false)] + public static JsonConverter UInt16Converter { get { throw null; } } + + [CLSCompliant(false)] + public static JsonConverter UInt32Converter { get { throw null; } } + + [CLSCompliant(false)] + public static JsonConverter UInt64Converter { get { throw null; } } + + public static JsonConverter UriConverter { get { throw null; } } + + public static JsonConverter VersionConverter { get { throw null; } } + + public static JsonTypeInfo CreateArrayInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) { throw null; } + + public static JsonTypeInfo CreateConcurrentQueueInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) + where TCollection : Collections.Concurrent.ConcurrentQueue { throw null; } + + public static JsonTypeInfo CreateConcurrentStackInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) + where TCollection : Collections.Concurrent.ConcurrentStack { throw null; } + + public static JsonTypeInfo CreateDictionaryInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) + where TCollection : Collections.Generic.Dictionary { throw null; } + + public static JsonTypeInfo CreateIAsyncEnumerableInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) + where TCollection : Collections.Generic.IAsyncEnumerable { throw null; } + + public static JsonTypeInfo CreateICollectionInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) + where TCollection : Collections.Generic.ICollection { throw null; } + + public static JsonTypeInfo CreateIDictionaryInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) + where TCollection : Collections.IDictionary { throw null; } + + public static JsonTypeInfo CreateIDictionaryInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) + where TCollection : Collections.Generic.IDictionary { throw null; } + + public static JsonTypeInfo CreateIEnumerableInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) + where TCollection : Collections.IEnumerable { throw null; } + + public static JsonTypeInfo CreateIEnumerableInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) + where TCollection : Collections.Generic.IEnumerable { throw null; } + + public static JsonTypeInfo CreateIListInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) + where TCollection : Collections.IList { throw null; } + + public static JsonTypeInfo CreateIListInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) + where TCollection : Collections.Generic.IList { throw null; } + + public static JsonTypeInfo CreateImmutableDictionaryInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo, Func>, TCollection> createRangeFunc) + where TCollection : Collections.Generic.IReadOnlyDictionary { throw null; } + + public static JsonTypeInfo CreateImmutableEnumerableInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo, Func, TCollection> createRangeFunc) + where TCollection : Collections.Generic.IEnumerable { throw null; } + + public static JsonTypeInfo CreateIReadOnlyDictionaryInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) + where TCollection : Collections.Generic.IReadOnlyDictionary { throw null; } + + public static JsonTypeInfo CreateISetInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) + where TCollection : Collections.Generic.ISet { throw null; } + + public static JsonTypeInfo CreateListInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) + where TCollection : Collections.Generic.List { throw null; } + + public static JsonTypeInfo> CreateMemoryInfo(JsonSerializerOptions options, JsonCollectionInfoValues> collectionInfo) { throw null; } + + public static JsonTypeInfo CreateObjectInfo(JsonSerializerOptions options, JsonObjectInfoValues objectInfo) { throw null; } + + public static JsonPropertyInfo CreatePropertyInfo(JsonSerializerOptions options, JsonPropertyInfoValues propertyInfo) { throw null; } + + public static JsonTypeInfo CreateQueueInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo, Action addFunc) + where TCollection : Collections.IEnumerable { throw null; } + + public static JsonTypeInfo CreateQueueInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) + where TCollection : Collections.Generic.Queue { throw null; } + + public static JsonTypeInfo> CreateReadOnlyMemoryInfo(JsonSerializerOptions options, JsonCollectionInfoValues> collectionInfo) { throw null; } + + public static JsonTypeInfo CreateStackInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo, Action addFunc) + where TCollection : Collections.IEnumerable { throw null; } + + public static JsonTypeInfo CreateStackInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) + where TCollection : Collections.Generic.Stack { throw null; } + + public static JsonTypeInfo CreateValueInfo(JsonSerializerOptions options, JsonConverter converter) { throw null; } + + public static JsonConverter GetEnumConverter(JsonSerializerOptions options) + where T : struct, Enum { throw null; } + + public static JsonConverter GetNullableConverter(JsonSerializerOptions options) + where T : struct { throw null; } + + public static JsonConverter GetNullableConverter(JsonTypeInfo underlyingTypeInfo) + where T : struct { throw null; } + + public static JsonConverter GetUnsupportedTypeConverter() { throw null; } + } + + public sealed partial class JsonObjectInfoValues + { + public Func? ConstructorParameterMetadataInitializer { get { throw null; } init { } } + + public JsonNumberHandling NumberHandling { get { throw null; } init { } } + + public Func? ObjectCreator { get { throw null; } init { } } + + public Func? ObjectWithParameterizedConstructorCreator { get { throw null; } init { } } + + public Func? PropertyMetadataInitializer { get { throw null; } init { } } + + public Action? SerializeHandler { get { throw null; } init { } } + } + + public sealed partial class JsonParameterInfoValues + { + public object? DefaultValue { get { throw null; } init { } } + + public bool HasDefaultValue { get { throw null; } init { } } + + public string Name { get { throw null; } init { } } + + public Type ParameterType { get { throw null; } init { } } + + public int Position { get { throw null; } init { } } + } + + public partial class JsonPolymorphismOptions + { + public Collections.Generic.IList DerivedTypes { get { throw null; } } + + public bool IgnoreUnrecognizedTypeDiscriminators { get { throw null; } set { } } + + public string TypeDiscriminatorPropertyName { get { throw null; } set { } } + + public JsonUnknownDerivedTypeHandling UnknownDerivedTypeHandling { get { throw null; } set { } } + } + + public abstract partial class JsonPropertyInfo + { + internal JsonPropertyInfo() { } + + public System.Reflection.ICustomAttributeProvider? AttributeProvider { get { throw null; } set { } } + + public JsonConverter? CustomConverter { get { throw null; } set { } } + + public Func? Get { get { throw null; } set { } } + + public bool IsExtensionData { get { throw null; } set { } } + + public bool IsRequired { get { throw null; } set { } } + + public string Name { get { throw null; } set { } } + + public JsonNumberHandling? NumberHandling { get { throw null; } set { } } + + public JsonObjectCreationHandling? ObjectCreationHandling { get { throw null; } set { } } + + public JsonSerializerOptions Options { get { throw null; } } + + public int Order { get { throw null; } set { } } + + public Type PropertyType { get { throw null; } } + + public Action? Set { get { throw null; } set { } } + + public Func? ShouldSerialize { get { throw null; } set { } } + } + + public sealed partial class JsonPropertyInfoValues + { + public JsonConverter? Converter { get { throw null; } init { } } + + public Type DeclaringType { get { throw null; } init { } } + + public Func? Getter { get { throw null; } init { } } + + public bool HasJsonInclude { get { throw null; } init { } } + + public JsonIgnoreCondition? IgnoreCondition { get { throw null; } init { } } + + public bool IsExtensionData { get { throw null; } init { } } + + public bool IsProperty { get { throw null; } init { } } + + public bool IsPublic { get { throw null; } init { } } + + public bool IsVirtual { get { throw null; } init { } } + + public string? JsonPropertyName { get { throw null; } init { } } + + public JsonNumberHandling? NumberHandling { get { throw null; } init { } } + + public string PropertyName { get { throw null; } init { } } + + public JsonTypeInfo PropertyTypeInfo { get { throw null; } init { } } + + public Action? Setter { get { throw null; } init { } } + } + + public abstract partial class JsonTypeInfo + { + internal JsonTypeInfo() { } + + public JsonConverter Converter { get { throw null; } } + + public Func? CreateObject { get { throw null; } set { } } + + public bool IsReadOnly { get { throw null; } } + + public JsonTypeInfoKind Kind { get { throw null; } } + + public JsonNumberHandling? NumberHandling { get { throw null; } set { } } + + public Action? OnDeserialized { get { throw null; } set { } } + + public Action? OnDeserializing { get { throw null; } set { } } + + public Action? OnSerialized { get { throw null; } set { } } + + public Action? OnSerializing { get { throw null; } set { } } + + public JsonSerializerOptions Options { get { throw null; } } + + public IJsonTypeInfoResolver? OriginatingResolver { get { throw null; } set { } } + + public JsonPolymorphismOptions? PolymorphismOptions { get { throw null; } set { } } + + public JsonObjectCreationHandling? PreferredPropertyObjectCreationHandling { get { throw null; } set { } } + + public Collections.Generic.IList Properties { get { throw null; } } + + public Type Type { get { throw null; } } + + public JsonUnmappedMemberHandling? UnmappedMemberHandling { get { throw null; } set { } } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public JsonPropertyInfo CreateJsonPropertyInfo(Type propertyType, string name) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static JsonTypeInfo CreateJsonTypeInfo(Type type, JsonSerializerOptions options) { throw null; } + + [Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + [Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] + public static JsonTypeInfo CreateJsonTypeInfo(JsonSerializerOptions options) { throw null; } + + public void MakeReadOnly() { } + } + + public enum JsonTypeInfoKind + { + None = 0, + Object = 1, + Enumerable = 2, + Dictionary = 3 + } + + public static partial class JsonTypeInfoResolver + { + public static IJsonTypeInfoResolver Combine(params IJsonTypeInfoResolver?[] resolvers) { throw null; } + + public static IJsonTypeInfoResolver WithAddedModifier(this IJsonTypeInfoResolver resolver, Action modifier) { throw null; } + } + + public sealed partial class JsonTypeInfo : JsonTypeInfo + { + internal JsonTypeInfo() { } + + public new Func? CreateObject { get { throw null; } set { } } + + public Action? SerializeHandler { get { throw null; } } + } +} \ No newline at end of file diff --git a/src/referencePackages/src/system.text.json/8.0.3/lib/netstandard2.0/System.Text.Json.cs b/src/referencePackages/src/system.text.json/8.0.3/lib/netstandard2.0/System.Text.Json.cs new file mode 100644 index 0000000000..fe25b52dc9 --- /dev/null +++ b/src/referencePackages/src/system.text.json/8.0.3/lib/netstandard2.0/System.Text.Json.cs @@ -0,0 +1,2095 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. +// ------------------------------------------------------------------------------ +// Changes to this file must follow the http://aka.ms/api-review process. +// ------------------------------------------------------------------------------ +[assembly: System.Runtime.CompilerServices.CompilationRelaxations(8)] +[assembly: System.Runtime.CompilerServices.RuntimeCompatibility(WrapNonExceptionThrows = true)] +[assembly: System.Diagnostics.Debuggable(System.Diagnostics.DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] +[assembly: System.Runtime.Versioning.TargetFramework(".NETStandard,Version=v2.0", FrameworkDisplayName = ".NET Standard 2.0")] +[assembly: System.Reflection.AssemblyMetadata("Serviceable", "True")] +[assembly: System.Reflection.AssemblyMetadata("PreferInbox", "True")] +[assembly: System.Reflection.AssemblyDefaultAlias("System.Text.Json")] +[assembly: System.Resources.NeutralResourcesLanguage("en-US")] +[assembly: System.CLSCompliant(true)] +[assembly: System.Reflection.AssemblyMetadata("IsTrimmable", "True")] +[assembly: System.Runtime.InteropServices.DefaultDllImportSearchPaths(System.Runtime.InteropServices.DllImportSearchPath.AssemblyDirectory | System.Runtime.InteropServices.DllImportSearchPath.System32)] +[assembly: System.Reflection.AssemblyCompany("Microsoft Corporation")] +[assembly: System.Reflection.AssemblyCopyright("© Microsoft Corporation. All rights reserved.")] +[assembly: System.Reflection.AssemblyDescription("Provides high-performance and low-allocating types that serialize objects to JavaScript Object Notation (JSON) text and deserialize JSON text to objects, with UTF-8 support built-in. Also provides types to read and write JSON text encoded as UTF-8, and to create an in-memory document object model (DOM), that is read-only, for random access of the JSON elements within a structured view of the data.\r\n\r\nThe System.Text.Json library is built-in as part of the shared framework in .NET Runtime. The package can be installed when you need to use it in other target frameworks.")] +[assembly: System.Reflection.AssemblyFileVersion("8.0.324.11423")] +[assembly: System.Reflection.AssemblyInformationalVersion("8.0.3+9f4b1f5d664afdfc80e1508ab7ed099dff210fbd")] +[assembly: System.Reflection.AssemblyProduct("Microsoft® .NET")] +[assembly: System.Reflection.AssemblyTitle("System.Text.Json")] +[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/dotnet/runtime")] +[assembly: System.Reflection.AssemblyVersionAttribute("8.0.0.0")] +[assembly: System.Runtime.CompilerServices.ReferenceAssembly] +[assembly: System.Reflection.AssemblyFlagsAttribute((System.Reflection.AssemblyNameFlags)0x70)] +namespace System.Text.Json +{ + public enum JsonCommentHandling : byte + { + Disallow = 0, + Skip = 1, + Allow = 2 + } + + public sealed partial class JsonDocument : IDisposable + { + internal JsonDocument() { } + + public JsonElement RootElement { get { throw null; } } + + public void Dispose() { } + + public static JsonDocument Parse(Buffers.ReadOnlySequence utf8Json, JsonDocumentOptions options = default) { throw null; } + + public static JsonDocument Parse(IO.Stream utf8Json, JsonDocumentOptions options = default) { throw null; } + + public static JsonDocument Parse(ReadOnlyMemory utf8Json, JsonDocumentOptions options = default) { throw null; } + + public static JsonDocument Parse(ReadOnlyMemory json, JsonDocumentOptions options = default) { throw null; } + + public static JsonDocument Parse(string json, JsonDocumentOptions options = default) { throw null; } + + public static Threading.Tasks.Task ParseAsync(IO.Stream utf8Json, JsonDocumentOptions options = default, Threading.CancellationToken cancellationToken = default) { throw null; } + + public static JsonDocument ParseValue(ref Utf8JsonReader reader) { throw null; } + + public static bool TryParseValue(ref Utf8JsonReader reader, out JsonDocument? document) { throw null; } + + public void WriteTo(Utf8JsonWriter writer) { } + } + + public partial struct JsonDocumentOptions + { + private int _dummyPrimitive; + public bool AllowTrailingCommas { get { throw null; } set { } } + + public JsonCommentHandling CommentHandling { get { throw null; } set { } } + + public int MaxDepth { get { throw null; } set { } } + } + + public readonly partial struct JsonElement + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public JsonElement this[int index] { get { throw null; } } + + public JsonValueKind ValueKind { get { throw null; } } + + public readonly JsonElement Clone() { throw null; } + + public readonly ArrayEnumerator EnumerateArray() { throw null; } + + public readonly ObjectEnumerator EnumerateObject() { throw null; } + + public readonly int GetArrayLength() { throw null; } + + public readonly bool GetBoolean() { throw null; } + + public readonly byte GetByte() { throw null; } + + public readonly byte[] GetBytesFromBase64() { throw null; } + + public readonly DateTime GetDateTime() { throw null; } + + public readonly DateTimeOffset GetDateTimeOffset() { throw null; } + + public readonly decimal GetDecimal() { throw null; } + + public readonly double GetDouble() { throw null; } + + public readonly Guid GetGuid() { throw null; } + + public readonly short GetInt16() { throw null; } + + public readonly int GetInt32() { throw null; } + + public readonly long GetInt64() { throw null; } + + public readonly JsonElement GetProperty(ReadOnlySpan utf8PropertyName) { throw null; } + + public readonly JsonElement GetProperty(ReadOnlySpan propertyName) { throw null; } + + public readonly JsonElement GetProperty(string propertyName) { throw null; } + + public readonly string GetRawText() { throw null; } + + [CLSCompliant(false)] + public readonly sbyte GetSByte() { throw null; } + + public readonly float GetSingle() { throw null; } + + public readonly string? GetString() { throw null; } + + [CLSCompliant(false)] + public readonly ushort GetUInt16() { throw null; } + + [CLSCompliant(false)] + public readonly uint GetUInt32() { throw null; } + + [CLSCompliant(false)] + public readonly ulong GetUInt64() { throw null; } + + public static JsonElement ParseValue(ref Utf8JsonReader reader) { throw null; } + + public override readonly string ToString() { throw null; } + + public readonly bool TryGetByte(out byte value) { throw null; } + + public readonly bool TryGetBytesFromBase64(out byte[]? value) { throw null; } + + public readonly bool TryGetDateTime(out DateTime value) { throw null; } + + public readonly bool TryGetDateTimeOffset(out DateTimeOffset value) { throw null; } + + public readonly bool TryGetDecimal(out decimal value) { throw null; } + + public readonly bool TryGetDouble(out double value) { throw null; } + + public readonly bool TryGetGuid(out Guid value) { throw null; } + + public readonly bool TryGetInt16(out short value) { throw null; } + + public readonly bool TryGetInt32(out int value) { throw null; } + + public readonly bool TryGetInt64(out long value) { throw null; } + + public readonly bool TryGetProperty(ReadOnlySpan utf8PropertyName, out JsonElement value) { throw null; } + + public readonly bool TryGetProperty(ReadOnlySpan propertyName, out JsonElement value) { throw null; } + + public readonly bool TryGetProperty(string propertyName, out JsonElement value) { throw null; } + + [CLSCompliant(false)] + public readonly bool TryGetSByte(out sbyte value) { throw null; } + + public readonly bool TryGetSingle(out float value) { throw null; } + + [CLSCompliant(false)] + public readonly bool TryGetUInt16(out ushort value) { throw null; } + + [CLSCompliant(false)] + public readonly bool TryGetUInt32(out uint value) { throw null; } + + [CLSCompliant(false)] + public readonly bool TryGetUInt64(out ulong value) { throw null; } + + public static bool TryParseValue(ref Utf8JsonReader reader, out JsonElement? element) { throw null; } + + public readonly bool ValueEquals(ReadOnlySpan utf8Text) { throw null; } + + public readonly bool ValueEquals(ReadOnlySpan text) { throw null; } + + public readonly bool ValueEquals(string? text) { throw null; } + + public readonly void WriteTo(Utf8JsonWriter writer) { } + + public partial struct ArrayEnumerator : Collections.Generic.IEnumerable, Collections.IEnumerable, Collections.Generic.IEnumerator, Collections.IEnumerator, IDisposable + { + private int _dummyPrimitive; + public JsonElement Current { get { throw null; } } + + object Collections.IEnumerator.Current { get { throw null; } } + + public void Dispose() { } + + public ArrayEnumerator GetEnumerator() { throw null; } + + public bool MoveNext() { throw null; } + + public void Reset() { } + + Collections.Generic.IEnumerator Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + + Collections.IEnumerator Collections.IEnumerable.GetEnumerator() { throw null; } + } + + public partial struct ObjectEnumerator : Collections.Generic.IEnumerable, Collections.IEnumerable, Collections.Generic.IEnumerator, Collections.IEnumerator, IDisposable + { + private int _dummyPrimitive; + public JsonProperty Current { get { throw null; } } + + object Collections.IEnumerator.Current { get { throw null; } } + + public void Dispose() { } + + public ObjectEnumerator GetEnumerator() { throw null; } + + public bool MoveNext() { throw null; } + + public void Reset() { } + + Collections.Generic.IEnumerator Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + + Collections.IEnumerator Collections.IEnumerable.GetEnumerator() { throw null; } + } + } + + public readonly partial struct JsonEncodedText : IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ReadOnlySpan EncodedUtf8Bytes { get { throw null; } } + + public string Value { get { throw null; } } + + public static JsonEncodedText Encode(ReadOnlySpan utf8Value, Encodings.Web.JavaScriptEncoder? encoder = null) { throw null; } + + public static JsonEncodedText Encode(ReadOnlySpan value, Encodings.Web.JavaScriptEncoder? encoder = null) { throw null; } + + public static JsonEncodedText Encode(string value, Encodings.Web.JavaScriptEncoder? encoder = null) { throw null; } + + public override readonly bool Equals(object? obj) { throw null; } + + public readonly bool Equals(JsonEncodedText other) { throw null; } + + public override readonly int GetHashCode() { throw null; } + + public override readonly string ToString() { throw null; } + } + + public partial class JsonException : Exception + { + public JsonException() { } + + protected JsonException(Runtime.Serialization.SerializationInfo info, Runtime.Serialization.StreamingContext context) { } + + public JsonException(string? message, Exception? innerException) { } + + public JsonException(string? message, string? path, long? lineNumber, long? bytePositionInLine, Exception? innerException) { } + + public JsonException(string? message, string? path, long? lineNumber, long? bytePositionInLine) { } + + public JsonException(string? message) { } + + public long? BytePositionInLine { get { throw null; } } + + public long? LineNumber { get { throw null; } } + + public override string Message { get { throw null; } } + + public string? Path { get { throw null; } } + + public override void GetObjectData(Runtime.Serialization.SerializationInfo info, Runtime.Serialization.StreamingContext context) { } + } + + public abstract partial class JsonNamingPolicy + { + public static JsonNamingPolicy CamelCase { get { throw null; } } + + public static JsonNamingPolicy KebabCaseLower { get { throw null; } } + + public static JsonNamingPolicy KebabCaseUpper { get { throw null; } } + + public static JsonNamingPolicy SnakeCaseLower { get { throw null; } } + + public static JsonNamingPolicy SnakeCaseUpper { get { throw null; } } + + public abstract string ConvertName(string name); + } + + public readonly partial struct JsonProperty + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public string Name { get { throw null; } } + + public JsonElement Value { get { throw null; } } + + public readonly bool NameEquals(ReadOnlySpan utf8Text) { throw null; } + + public readonly bool NameEquals(ReadOnlySpan text) { throw null; } + + public readonly bool NameEquals(string? text) { throw null; } + + public override readonly string ToString() { throw null; } + + public readonly void WriteTo(Utf8JsonWriter writer) { } + } + + public partial struct JsonReaderOptions + { + private int _dummyPrimitive; + public bool AllowTrailingCommas { get { throw null; } set { } } + + public JsonCommentHandling CommentHandling { get { throw null; } set { } } + + public int MaxDepth { get { throw null; } set { } } + } + + public partial struct JsonReaderState + { + private int _dummyPrimitive; + public JsonReaderState(JsonReaderOptions options = default) { } + + public JsonReaderOptions Options { get { throw null; } } + } + + public static partial class JsonSerializer + { + public static bool IsReflectionEnabledByDefault { get { throw null; } } + + public static object? Deserialize(IO.Stream utf8Json, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + public static object? Deserialize(IO.Stream utf8Json, Type returnType, JsonSerializerOptions? options = null) { throw null; } + + public static object? Deserialize(IO.Stream utf8Json, Type returnType, Serialization.JsonSerializerContext context) { throw null; } + + public static object? Deserialize(ReadOnlySpan utf8Json, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + public static object? Deserialize(ReadOnlySpan utf8Json, Type returnType, JsonSerializerOptions? options = null) { throw null; } + + public static object? Deserialize(ReadOnlySpan utf8Json, Type returnType, Serialization.JsonSerializerContext context) { throw null; } + + public static object? Deserialize(ReadOnlySpan json, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + public static object? Deserialize(ReadOnlySpan json, Type returnType, JsonSerializerOptions? options = null) { throw null; } + + public static object? Deserialize(ReadOnlySpan json, Type returnType, Serialization.JsonSerializerContext context) { throw null; } + + public static object? Deserialize(string json, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + public static object? Deserialize(string json, Type returnType, JsonSerializerOptions? options = null) { throw null; } + + public static object? Deserialize(string json, Type returnType, Serialization.JsonSerializerContext context) { throw null; } + + public static object? Deserialize(this JsonDocument document, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + public static object? Deserialize(this JsonDocument document, Type returnType, JsonSerializerOptions? options = null) { throw null; } + + public static object? Deserialize(this JsonDocument document, Type returnType, Serialization.JsonSerializerContext context) { throw null; } + + public static object? Deserialize(this JsonElement element, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + public static object? Deserialize(this JsonElement element, Type returnType, JsonSerializerOptions? options = null) { throw null; } + + public static object? Deserialize(this JsonElement element, Type returnType, Serialization.JsonSerializerContext context) { throw null; } + + public static object? Deserialize(this Nodes.JsonNode? node, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + public static object? Deserialize(this Nodes.JsonNode? node, Type returnType, JsonSerializerOptions? options = null) { throw null; } + + public static object? Deserialize(this Nodes.JsonNode? node, Type returnType, Serialization.JsonSerializerContext context) { throw null; } + + public static object? Deserialize(ref Utf8JsonReader reader, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + public static object? Deserialize(ref Utf8JsonReader reader, Type returnType, JsonSerializerOptions? options = null) { throw null; } + + public static object? Deserialize(ref Utf8JsonReader reader, Type returnType, Serialization.JsonSerializerContext context) { throw null; } + + public static TValue? Deserialize(IO.Stream utf8Json, JsonSerializerOptions? options = null) { throw null; } + + public static TValue? Deserialize(IO.Stream utf8Json, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + public static TValue? Deserialize(ReadOnlySpan utf8Json, JsonSerializerOptions? options = null) { throw null; } + + public static TValue? Deserialize(ReadOnlySpan utf8Json, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + public static TValue? Deserialize(ReadOnlySpan json, JsonSerializerOptions? options = null) { throw null; } + + public static TValue? Deserialize(ReadOnlySpan json, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + public static TValue? Deserialize(string json, JsonSerializerOptions? options = null) { throw null; } + + public static TValue? Deserialize(string json, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + public static TValue? Deserialize(this JsonDocument document, JsonSerializerOptions? options = null) { throw null; } + + public static TValue? Deserialize(this JsonDocument document, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + public static TValue? Deserialize(this JsonElement element, JsonSerializerOptions? options = null) { throw null; } + + public static TValue? Deserialize(this JsonElement element, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + public static TValue? Deserialize(this Nodes.JsonNode? node, JsonSerializerOptions? options = null) { throw null; } + + public static TValue? Deserialize(this Nodes.JsonNode? node, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + public static TValue? Deserialize(ref Utf8JsonReader reader, JsonSerializerOptions? options = null) { throw null; } + + public static TValue? Deserialize(ref Utf8JsonReader reader, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + public static Threading.Tasks.ValueTask DeserializeAsync(IO.Stream utf8Json, Serialization.Metadata.JsonTypeInfo jsonTypeInfo, Threading.CancellationToken cancellationToken = default) { throw null; } + + public static Threading.Tasks.ValueTask DeserializeAsync(IO.Stream utf8Json, Type returnType, JsonSerializerOptions? options = null, Threading.CancellationToken cancellationToken = default) { throw null; } + + public static Threading.Tasks.ValueTask DeserializeAsync(IO.Stream utf8Json, Type returnType, Serialization.JsonSerializerContext context, Threading.CancellationToken cancellationToken = default) { throw null; } + + public static Threading.Tasks.ValueTask DeserializeAsync(IO.Stream utf8Json, JsonSerializerOptions? options = null, Threading.CancellationToken cancellationToken = default) { throw null; } + + public static Threading.Tasks.ValueTask DeserializeAsync(IO.Stream utf8Json, Serialization.Metadata.JsonTypeInfo jsonTypeInfo, Threading.CancellationToken cancellationToken = default) { throw null; } + + public static Collections.Generic.IAsyncEnumerable DeserializeAsyncEnumerable(IO.Stream utf8Json, JsonSerializerOptions? options = null, Threading.CancellationToken cancellationToken = default) { throw null; } + + public static Collections.Generic.IAsyncEnumerable DeserializeAsyncEnumerable(IO.Stream utf8Json, Serialization.Metadata.JsonTypeInfo jsonTypeInfo, Threading.CancellationToken cancellationToken = default) { throw null; } + + public static void Serialize(IO.Stream utf8Json, object? value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { } + + public static void Serialize(IO.Stream utf8Json, object? value, Type inputType, JsonSerializerOptions? options = null) { } + + public static void Serialize(IO.Stream utf8Json, object? value, Type inputType, Serialization.JsonSerializerContext context) { } + + public static string Serialize(object? value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + public static string Serialize(object? value, Type inputType, JsonSerializerOptions? options = null) { throw null; } + + public static string Serialize(object? value, Type inputType, Serialization.JsonSerializerContext context) { throw null; } + + public static void Serialize(Utf8JsonWriter writer, object? value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { } + + public static void Serialize(Utf8JsonWriter writer, object? value, Type inputType, JsonSerializerOptions? options = null) { } + + public static void Serialize(Utf8JsonWriter writer, object? value, Type inputType, Serialization.JsonSerializerContext context) { } + + public static string Serialize(TValue value, JsonSerializerOptions? options = null) { throw null; } + + public static string Serialize(TValue value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + public static void Serialize(IO.Stream utf8Json, TValue value, JsonSerializerOptions? options = null) { } + + public static void Serialize(IO.Stream utf8Json, TValue value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { } + + public static void Serialize(Utf8JsonWriter writer, TValue value, JsonSerializerOptions? options = null) { } + + public static void Serialize(Utf8JsonWriter writer, TValue value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { } + + public static Threading.Tasks.Task SerializeAsync(IO.Stream utf8Json, object? value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo, Threading.CancellationToken cancellationToken = default) { throw null; } + + public static Threading.Tasks.Task SerializeAsync(IO.Stream utf8Json, object? value, Type inputType, JsonSerializerOptions? options = null, Threading.CancellationToken cancellationToken = default) { throw null; } + + public static Threading.Tasks.Task SerializeAsync(IO.Stream utf8Json, object? value, Type inputType, Serialization.JsonSerializerContext context, Threading.CancellationToken cancellationToken = default) { throw null; } + + public static Threading.Tasks.Task SerializeAsync(IO.Stream utf8Json, TValue value, JsonSerializerOptions? options = null, Threading.CancellationToken cancellationToken = default) { throw null; } + + public static Threading.Tasks.Task SerializeAsync(IO.Stream utf8Json, TValue value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo, Threading.CancellationToken cancellationToken = default) { throw null; } + + public static JsonDocument SerializeToDocument(object? value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + public static JsonDocument SerializeToDocument(object? value, Type inputType, JsonSerializerOptions? options = null) { throw null; } + + public static JsonDocument SerializeToDocument(object? value, Type inputType, Serialization.JsonSerializerContext context) { throw null; } + + public static JsonDocument SerializeToDocument(TValue value, JsonSerializerOptions? options = null) { throw null; } + + public static JsonDocument SerializeToDocument(TValue value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + public static JsonElement SerializeToElement(object? value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + public static JsonElement SerializeToElement(object? value, Type inputType, JsonSerializerOptions? options = null) { throw null; } + + public static JsonElement SerializeToElement(object? value, Type inputType, Serialization.JsonSerializerContext context) { throw null; } + + public static JsonElement SerializeToElement(TValue value, JsonSerializerOptions? options = null) { throw null; } + + public static JsonElement SerializeToElement(TValue value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + public static Nodes.JsonNode? SerializeToNode(object? value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + public static Nodes.JsonNode? SerializeToNode(object? value, Type inputType, JsonSerializerOptions? options = null) { throw null; } + + public static Nodes.JsonNode? SerializeToNode(object? value, Type inputType, Serialization.JsonSerializerContext context) { throw null; } + + public static Nodes.JsonNode? SerializeToNode(TValue value, JsonSerializerOptions? options = null) { throw null; } + + public static Nodes.JsonNode? SerializeToNode(TValue value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + public static byte[] SerializeToUtf8Bytes(object? value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + + public static byte[] SerializeToUtf8Bytes(object? value, Type inputType, JsonSerializerOptions? options = null) { throw null; } + + public static byte[] SerializeToUtf8Bytes(object? value, Type inputType, Serialization.JsonSerializerContext context) { throw null; } + + public static byte[] SerializeToUtf8Bytes(TValue value, JsonSerializerOptions? options = null) { throw null; } + + public static byte[] SerializeToUtf8Bytes(TValue value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo) { throw null; } + } + + public enum JsonSerializerDefaults + { + General = 0, + Web = 1 + } + + public sealed partial class JsonSerializerOptions + { + public JsonSerializerOptions() { } + + public JsonSerializerOptions(JsonSerializerDefaults defaults) { } + + public JsonSerializerOptions(JsonSerializerOptions options) { } + + public bool AllowTrailingCommas { get { throw null; } set { } } + + public Collections.Generic.IList Converters { get { throw null; } } + + public static JsonSerializerOptions Default { get { throw null; } } + + public int DefaultBufferSize { get { throw null; } set { } } + + public Serialization.JsonIgnoreCondition DefaultIgnoreCondition { get { throw null; } set { } } + + public JsonNamingPolicy? DictionaryKeyPolicy { get { throw null; } set { } } + + public Encodings.Web.JavaScriptEncoder? Encoder { get { throw null; } set { } } + + public bool IgnoreNullValues { get { throw null; } set { } } + + public bool IgnoreReadOnlyFields { get { throw null; } set { } } + + public bool IgnoreReadOnlyProperties { get { throw null; } set { } } + + public bool IncludeFields { get { throw null; } set { } } + + public bool IsReadOnly { get { throw null; } } + + public int MaxDepth { get { throw null; } set { } } + + public Serialization.JsonNumberHandling NumberHandling { get { throw null; } set { } } + + public Serialization.JsonObjectCreationHandling PreferredObjectCreationHandling { get { throw null; } set { } } + + public bool PropertyNameCaseInsensitive { get { throw null; } set { } } + + public JsonNamingPolicy? PropertyNamingPolicy { get { throw null; } set { } } + + public JsonCommentHandling ReadCommentHandling { get { throw null; } set { } } + + public Serialization.ReferenceHandler? ReferenceHandler { get { throw null; } set { } } + + public Serialization.Metadata.IJsonTypeInfoResolver? TypeInfoResolver { get { throw null; } set { } } + + public Collections.Generic.IList TypeInfoResolverChain { get { throw null; } } + + public Serialization.JsonUnknownTypeHandling UnknownTypeHandling { get { throw null; } set { } } + + public Serialization.JsonUnmappedMemberHandling UnmappedMemberHandling { get { throw null; } set { } } + + public bool WriteIndented { get { throw null; } set { } } + + public void AddContext() + where TContext : Serialization.JsonSerializerContext, new() { } + + public Serialization.JsonConverter GetConverter(Type typeToConvert) { throw null; } + + public Serialization.Metadata.JsonTypeInfo GetTypeInfo(Type type) { throw null; } + + public void MakeReadOnly() { } + + public void MakeReadOnly(bool populateMissingResolver) { } + + public bool TryGetTypeInfo(Type type, out Serialization.Metadata.JsonTypeInfo? typeInfo) { throw null; } + } + + public enum JsonTokenType : byte + { + None = 0, + StartObject = 1, + EndObject = 2, + StartArray = 3, + EndArray = 4, + PropertyName = 5, + Comment = 6, + String = 7, + Number = 8, + True = 9, + False = 10, + Null = 11 + } + + public enum JsonValueKind : byte + { + Undefined = 0, + Object = 1, + Array = 2, + String = 3, + Number = 4, + True = 5, + False = 6, + Null = 7 + } + + public partial struct JsonWriterOptions + { + private object _dummy; + private int _dummyPrimitive; + public Encodings.Web.JavaScriptEncoder? Encoder { get { throw null; } set { } } + + public bool Indented { get { throw null; } set { } } + + public int MaxDepth { get { throw null; } set { } } + + public bool SkipValidation { get { throw null; } set { } } + } + + public ref partial struct Utf8JsonReader + { + private object _dummy; + private int _dummyPrimitive; + public Utf8JsonReader(Buffers.ReadOnlySequence jsonData, bool isFinalBlock, JsonReaderState state) { } + + public Utf8JsonReader(Buffers.ReadOnlySequence jsonData, JsonReaderOptions options = default) { } + + public Utf8JsonReader(ReadOnlySpan jsonData, bool isFinalBlock, JsonReaderState state) { } + + public Utf8JsonReader(ReadOnlySpan jsonData, JsonReaderOptions options = default) { } + + public long BytesConsumed { get { throw null; } } + + public int CurrentDepth { get { throw null; } } + + public JsonReaderState CurrentState { get { throw null; } } + + public bool HasValueSequence { get { throw null; } } + + public bool IsFinalBlock { get { throw null; } } + + public SequencePosition Position { get { throw null; } } + + public long TokenStartIndex { get { throw null; } } + + public JsonTokenType TokenType { get { throw null; } } + + public bool ValueIsEscaped { get { throw null; } } + + public Buffers.ReadOnlySequence ValueSequence { get { throw null; } } + + public ReadOnlySpan ValueSpan { get { throw null; } } + + public readonly int CopyString(Span utf8Destination) { throw null; } + + public readonly int CopyString(Span destination) { throw null; } + + public bool GetBoolean() { throw null; } + + public byte GetByte() { throw null; } + + public byte[] GetBytesFromBase64() { throw null; } + + public string GetComment() { throw null; } + + public DateTime GetDateTime() { throw null; } + + public DateTimeOffset GetDateTimeOffset() { throw null; } + + public decimal GetDecimal() { throw null; } + + public double GetDouble() { throw null; } + + public Guid GetGuid() { throw null; } + + public short GetInt16() { throw null; } + + public int GetInt32() { throw null; } + + public long GetInt64() { throw null; } + + [CLSCompliant(false)] + public sbyte GetSByte() { throw null; } + + public float GetSingle() { throw null; } + + public string? GetString() { throw null; } + + [CLSCompliant(false)] + public ushort GetUInt16() { throw null; } + + [CLSCompliant(false)] + public uint GetUInt32() { throw null; } + + [CLSCompliant(false)] + public ulong GetUInt64() { throw null; } + + public bool Read() { throw null; } + + public void Skip() { } + + public bool TryGetByte(out byte value) { throw null; } + + public bool TryGetBytesFromBase64(out byte[]? value) { throw null; } + + public bool TryGetDateTime(out DateTime value) { throw null; } + + public bool TryGetDateTimeOffset(out DateTimeOffset value) { throw null; } + + public bool TryGetDecimal(out decimal value) { throw null; } + + public bool TryGetDouble(out double value) { throw null; } + + public bool TryGetGuid(out Guid value) { throw null; } + + public bool TryGetInt16(out short value) { throw null; } + + public bool TryGetInt32(out int value) { throw null; } + + public bool TryGetInt64(out long value) { throw null; } + + [CLSCompliant(false)] + public bool TryGetSByte(out sbyte value) { throw null; } + + public bool TryGetSingle(out float value) { throw null; } + + [CLSCompliant(false)] + public bool TryGetUInt16(out ushort value) { throw null; } + + [CLSCompliant(false)] + public bool TryGetUInt32(out uint value) { throw null; } + + [CLSCompliant(false)] + public bool TryGetUInt64(out ulong value) { throw null; } + + public bool TrySkip() { throw null; } + + public readonly bool ValueTextEquals(ReadOnlySpan utf8Text) { throw null; } + + public readonly bool ValueTextEquals(ReadOnlySpan text) { throw null; } + + public readonly bool ValueTextEquals(string? text) { throw null; } + } + + public sealed partial class Utf8JsonWriter : IDisposable, IAsyncDisposable + { + public Utf8JsonWriter(Buffers.IBufferWriter bufferWriter, JsonWriterOptions options = default) { } + + public Utf8JsonWriter(IO.Stream utf8Json, JsonWriterOptions options = default) { } + + public long BytesCommitted { get { throw null; } } + + public int BytesPending { get { throw null; } } + + public int CurrentDepth { get { throw null; } } + + public JsonWriterOptions Options { get { throw null; } } + + public void Dispose() { } + + public Threading.Tasks.ValueTask DisposeAsync() { throw null; } + + public void Flush() { } + + public Threading.Tasks.Task FlushAsync(Threading.CancellationToken cancellationToken = default) { throw null; } + + public void Reset() { } + + public void Reset(Buffers.IBufferWriter bufferWriter) { } + + public void Reset(IO.Stream utf8Json) { } + + public void WriteBase64String(ReadOnlySpan utf8PropertyName, ReadOnlySpan bytes) { } + + public void WriteBase64String(ReadOnlySpan propertyName, ReadOnlySpan bytes) { } + + public void WriteBase64String(string propertyName, ReadOnlySpan bytes) { } + + public void WriteBase64String(JsonEncodedText propertyName, ReadOnlySpan bytes) { } + + public void WriteBase64StringValue(ReadOnlySpan bytes) { } + + public void WriteBoolean(ReadOnlySpan utf8PropertyName, bool value) { } + + public void WriteBoolean(ReadOnlySpan propertyName, bool value) { } + + public void WriteBoolean(string propertyName, bool value) { } + + public void WriteBoolean(JsonEncodedText propertyName, bool value) { } + + public void WriteBooleanValue(bool value) { } + + public void WriteCommentValue(ReadOnlySpan utf8Value) { } + + public void WriteCommentValue(ReadOnlySpan value) { } + + public void WriteCommentValue(string value) { } + + public void WriteEndArray() { } + + public void WriteEndObject() { } + + public void WriteNull(ReadOnlySpan utf8PropertyName) { } + + public void WriteNull(ReadOnlySpan propertyName) { } + + public void WriteNull(string propertyName) { } + + public void WriteNull(JsonEncodedText propertyName) { } + + public void WriteNullValue() { } + + public void WriteNumber(ReadOnlySpan utf8PropertyName, decimal value) { } + + public void WriteNumber(ReadOnlySpan utf8PropertyName, double value) { } + + public void WriteNumber(ReadOnlySpan utf8PropertyName, int value) { } + + public void WriteNumber(ReadOnlySpan utf8PropertyName, long value) { } + + public void WriteNumber(ReadOnlySpan utf8PropertyName, float value) { } + + [CLSCompliant(false)] + public void WriteNumber(ReadOnlySpan utf8PropertyName, uint value) { } + + [CLSCompliant(false)] + public void WriteNumber(ReadOnlySpan utf8PropertyName, ulong value) { } + + public void WriteNumber(ReadOnlySpan propertyName, decimal value) { } + + public void WriteNumber(ReadOnlySpan propertyName, double value) { } + + public void WriteNumber(ReadOnlySpan propertyName, int value) { } + + public void WriteNumber(ReadOnlySpan propertyName, long value) { } + + public void WriteNumber(ReadOnlySpan propertyName, float value) { } + + [CLSCompliant(false)] + public void WriteNumber(ReadOnlySpan propertyName, uint value) { } + + [CLSCompliant(false)] + public void WriteNumber(ReadOnlySpan propertyName, ulong value) { } + + public void WriteNumber(string propertyName, decimal value) { } + + public void WriteNumber(string propertyName, double value) { } + + public void WriteNumber(string propertyName, int value) { } + + public void WriteNumber(string propertyName, long value) { } + + public void WriteNumber(string propertyName, float value) { } + + [CLSCompliant(false)] + public void WriteNumber(string propertyName, uint value) { } + + [CLSCompliant(false)] + public void WriteNumber(string propertyName, ulong value) { } + + public void WriteNumber(JsonEncodedText propertyName, decimal value) { } + + public void WriteNumber(JsonEncodedText propertyName, double value) { } + + public void WriteNumber(JsonEncodedText propertyName, int value) { } + + public void WriteNumber(JsonEncodedText propertyName, long value) { } + + public void WriteNumber(JsonEncodedText propertyName, float value) { } + + [CLSCompliant(false)] + public void WriteNumber(JsonEncodedText propertyName, uint value) { } + + [CLSCompliant(false)] + public void WriteNumber(JsonEncodedText propertyName, ulong value) { } + + public void WriteNumberValue(decimal value) { } + + public void WriteNumberValue(double value) { } + + public void WriteNumberValue(int value) { } + + public void WriteNumberValue(long value) { } + + public void WriteNumberValue(float value) { } + + [CLSCompliant(false)] + public void WriteNumberValue(uint value) { } + + [CLSCompliant(false)] + public void WriteNumberValue(ulong value) { } + + public void WritePropertyName(ReadOnlySpan utf8PropertyName) { } + + public void WritePropertyName(ReadOnlySpan propertyName) { } + + public void WritePropertyName(string propertyName) { } + + public void WritePropertyName(JsonEncodedText propertyName) { } + + public void WriteRawValue(Buffers.ReadOnlySequence utf8Json, bool skipInputValidation = false) { } + + public void WriteRawValue(ReadOnlySpan utf8Json, bool skipInputValidation = false) { } + + public void WriteRawValue(ReadOnlySpan json, bool skipInputValidation = false) { } + + public void WriteRawValue(string json, bool skipInputValidation = false) { } + + public void WriteStartArray() { } + + public void WriteStartArray(ReadOnlySpan utf8PropertyName) { } + + public void WriteStartArray(ReadOnlySpan propertyName) { } + + public void WriteStartArray(string propertyName) { } + + public void WriteStartArray(JsonEncodedText propertyName) { } + + public void WriteStartObject() { } + + public void WriteStartObject(ReadOnlySpan utf8PropertyName) { } + + public void WriteStartObject(ReadOnlySpan propertyName) { } + + public void WriteStartObject(string propertyName) { } + + public void WriteStartObject(JsonEncodedText propertyName) { } + + public void WriteString(ReadOnlySpan utf8PropertyName, DateTime value) { } + + public void WriteString(ReadOnlySpan utf8PropertyName, DateTimeOffset value) { } + + public void WriteString(ReadOnlySpan utf8PropertyName, Guid value) { } + + public void WriteString(ReadOnlySpan utf8PropertyName, ReadOnlySpan utf8Value) { } + + public void WriteString(ReadOnlySpan utf8PropertyName, ReadOnlySpan value) { } + + public void WriteString(ReadOnlySpan utf8PropertyName, string? value) { } + + public void WriteString(ReadOnlySpan utf8PropertyName, JsonEncodedText value) { } + + public void WriteString(ReadOnlySpan propertyName, DateTime value) { } + + public void WriteString(ReadOnlySpan propertyName, DateTimeOffset value) { } + + public void WriteString(ReadOnlySpan propertyName, Guid value) { } + + public void WriteString(ReadOnlySpan propertyName, ReadOnlySpan utf8Value) { } + + public void WriteString(ReadOnlySpan propertyName, ReadOnlySpan value) { } + + public void WriteString(ReadOnlySpan propertyName, string? value) { } + + public void WriteString(ReadOnlySpan propertyName, JsonEncodedText value) { } + + public void WriteString(string propertyName, DateTime value) { } + + public void WriteString(string propertyName, DateTimeOffset value) { } + + public void WriteString(string propertyName, Guid value) { } + + public void WriteString(string propertyName, ReadOnlySpan utf8Value) { } + + public void WriteString(string propertyName, ReadOnlySpan value) { } + + public void WriteString(string propertyName, string? value) { } + + public void WriteString(string propertyName, JsonEncodedText value) { } + + public void WriteString(JsonEncodedText propertyName, DateTime value) { } + + public void WriteString(JsonEncodedText propertyName, DateTimeOffset value) { } + + public void WriteString(JsonEncodedText propertyName, Guid value) { } + + public void WriteString(JsonEncodedText propertyName, ReadOnlySpan utf8Value) { } + + public void WriteString(JsonEncodedText propertyName, ReadOnlySpan value) { } + + public void WriteString(JsonEncodedText propertyName, string? value) { } + + public void WriteString(JsonEncodedText propertyName, JsonEncodedText value) { } + + public void WriteStringValue(DateTime value) { } + + public void WriteStringValue(DateTimeOffset value) { } + + public void WriteStringValue(Guid value) { } + + public void WriteStringValue(ReadOnlySpan utf8Value) { } + + public void WriteStringValue(ReadOnlySpan value) { } + + public void WriteStringValue(string? value) { } + + public void WriteStringValue(JsonEncodedText value) { } + } +} + +namespace System.Text.Json.Nodes +{ + public sealed partial class JsonArray : JsonNode, Collections.Generic.IList, Collections.Generic.ICollection, Collections.Generic.IEnumerable, Collections.IEnumerable + { + public JsonArray(JsonNodeOptions? options = null) { } + + public JsonArray(params JsonNode?[] items) { } + + public JsonArray(JsonNodeOptions options, params JsonNode?[] items) { } + + public int Count { get { throw null; } } + + bool Collections.Generic.ICollection.IsReadOnly { get { throw null; } } + + public void Add(JsonNode? item) { } + + public void Add(T? value) { } + + public void Clear() { } + + public bool Contains(JsonNode? item) { throw null; } + + public static JsonArray? Create(JsonElement element, JsonNodeOptions? options = null) { throw null; } + + public Collections.Generic.IEnumerator GetEnumerator() { throw null; } + + public Collections.Generic.IEnumerable GetValues() { throw null; } + + public int IndexOf(JsonNode? item) { throw null; } + + public void Insert(int index, JsonNode? item) { } + + public bool Remove(JsonNode? item) { throw null; } + + public void RemoveAt(int index) { } + + void Collections.Generic.ICollection.CopyTo(JsonNode[] array, int index) { } + + Collections.IEnumerator? Collections.IEnumerable.GetEnumerator() { throw null; } + + public override void WriteTo(Utf8JsonWriter writer, JsonSerializerOptions? options = null) { } + } + + public abstract partial class JsonNode + { + internal JsonNode() { } + + public JsonNode? this[int index] { get { throw null; } set { } } + + public JsonNode? this[string propertyName] { get { throw null; } set { } } + + public JsonNodeOptions? Options { get { throw null; } } + + public JsonNode? Parent { get { throw null; } } + + public JsonNode Root { get { throw null; } } + + public JsonArray AsArray() { throw null; } + + public JsonObject AsObject() { throw null; } + + public JsonValue AsValue() { throw null; } + + public JsonNode DeepClone() { throw null; } + + public static bool DeepEquals(JsonNode? node1, JsonNode? node2) { throw null; } + + public int GetElementIndex() { throw null; } + + public string GetPath() { throw null; } + + public string GetPropertyName() { throw null; } + + public virtual T GetValue() { throw null; } + + public JsonValueKind GetValueKind() { throw null; } + + public static explicit operator bool(JsonNode value) { throw null; } + + public static explicit operator byte(JsonNode value) { throw null; } + + public static explicit operator char(JsonNode value) { throw null; } + + public static explicit operator DateTime(JsonNode value) { throw null; } + + public static explicit operator DateTimeOffset(JsonNode value) { throw null; } + + public static explicit operator decimal(JsonNode value) { throw null; } + + public static explicit operator double(JsonNode value) { throw null; } + + public static explicit operator Guid(JsonNode value) { throw null; } + + public static explicit operator short(JsonNode value) { throw null; } + + public static explicit operator int(JsonNode value) { throw null; } + + public static explicit operator long(JsonNode value) { throw null; } + + public static explicit operator bool?(JsonNode? value) { throw null; } + + public static explicit operator byte?(JsonNode? value) { throw null; } + + public static explicit operator char?(JsonNode? value) { throw null; } + + public static explicit operator DateTime?(JsonNode? value) { throw null; } + + public static explicit operator DateTimeOffset?(JsonNode? value) { throw null; } + + public static explicit operator decimal?(JsonNode? value) { throw null; } + + public static explicit operator double?(JsonNode? value) { throw null; } + + public static explicit operator Guid?(JsonNode? value) { throw null; } + + public static explicit operator short?(JsonNode? value) { throw null; } + + public static explicit operator int?(JsonNode? value) { throw null; } + + public static explicit operator long?(JsonNode? value) { throw null; } + + [CLSCompliant(false)] + public static explicit operator sbyte?(JsonNode? value) { throw null; } + + public static explicit operator float?(JsonNode? value) { throw null; } + + [CLSCompliant(false)] + public static explicit operator ushort?(JsonNode? value) { throw null; } + + [CLSCompliant(false)] + public static explicit operator uint?(JsonNode? value) { throw null; } + + [CLSCompliant(false)] + public static explicit operator ulong?(JsonNode? value) { throw null; } + + [CLSCompliant(false)] + public static explicit operator sbyte(JsonNode value) { throw null; } + + public static explicit operator float(JsonNode value) { throw null; } + + public static explicit operator string?(JsonNode? value) { throw null; } + + [CLSCompliant(false)] + public static explicit operator ushort(JsonNode value) { throw null; } + + [CLSCompliant(false)] + public static explicit operator uint(JsonNode value) { throw null; } + + [CLSCompliant(false)] + public static explicit operator ulong(JsonNode value) { throw null; } + + public static implicit operator JsonNode(bool value) { throw null; } + + public static implicit operator JsonNode(byte value) { throw null; } + + public static implicit operator JsonNode(char value) { throw null; } + + public static implicit operator JsonNode(DateTime value) { throw null; } + + public static implicit operator JsonNode(DateTimeOffset value) { throw null; } + + public static implicit operator JsonNode(decimal value) { throw null; } + + public static implicit operator JsonNode(double value) { throw null; } + + public static implicit operator JsonNode(Guid value) { throw null; } + + public static implicit operator JsonNode(short value) { throw null; } + + public static implicit operator JsonNode(int value) { throw null; } + + public static implicit operator JsonNode(long value) { throw null; } + + public static implicit operator JsonNode?(bool? value) { throw null; } + + public static implicit operator JsonNode?(byte? value) { throw null; } + + public static implicit operator JsonNode?(char? value) { throw null; } + + public static implicit operator JsonNode?(DateTime? value) { throw null; } + + public static implicit operator JsonNode?(DateTimeOffset? value) { throw null; } + + public static implicit operator JsonNode?(decimal? value) { throw null; } + + public static implicit operator JsonNode?(double? value) { throw null; } + + public static implicit operator JsonNode?(Guid? value) { throw null; } + + public static implicit operator JsonNode?(short? value) { throw null; } + + public static implicit operator JsonNode?(int? value) { throw null; } + + public static implicit operator JsonNode?(long? value) { throw null; } + + [CLSCompliant(false)] + public static implicit operator JsonNode?(sbyte? value) { throw null; } + + public static implicit operator JsonNode?(float? value) { throw null; } + + [CLSCompliant(false)] + public static implicit operator JsonNode?(ushort? value) { throw null; } + + [CLSCompliant(false)] + public static implicit operator JsonNode?(uint? value) { throw null; } + + [CLSCompliant(false)] + public static implicit operator JsonNode?(ulong? value) { throw null; } + + [CLSCompliant(false)] + public static implicit operator JsonNode(sbyte value) { throw null; } + + public static implicit operator JsonNode(float value) { throw null; } + + public static implicit operator JsonNode?(string? value) { throw null; } + + [CLSCompliant(false)] + public static implicit operator JsonNode(ushort value) { throw null; } + + [CLSCompliant(false)] + public static implicit operator JsonNode(uint value) { throw null; } + + [CLSCompliant(false)] + public static implicit operator JsonNode(ulong value) { throw null; } + + public static JsonNode? Parse(IO.Stream utf8Json, JsonNodeOptions? nodeOptions = null, JsonDocumentOptions documentOptions = default) { throw null; } + + public static JsonNode? Parse(ReadOnlySpan utf8Json, JsonNodeOptions? nodeOptions = null, JsonDocumentOptions documentOptions = default) { throw null; } + + public static JsonNode? Parse(string json, JsonNodeOptions? nodeOptions = null, JsonDocumentOptions documentOptions = default) { throw null; } + + public static JsonNode? Parse(ref Utf8JsonReader reader, JsonNodeOptions? nodeOptions = null) { throw null; } + + public static Threading.Tasks.Task ParseAsync(IO.Stream utf8Json, JsonNodeOptions? nodeOptions = null, JsonDocumentOptions documentOptions = default, Threading.CancellationToken cancellationToken = default) { throw null; } + + public void ReplaceWith(T value) { } + + public string ToJsonString(JsonSerializerOptions? options = null) { throw null; } + + public override string ToString() { throw null; } + + public abstract void WriteTo(Utf8JsonWriter writer, JsonSerializerOptions? options = null); + } + + public partial struct JsonNodeOptions + { + private int _dummyPrimitive; + public bool PropertyNameCaseInsensitive { get { throw null; } set { } } + } + + public sealed partial class JsonObject : JsonNode, Collections.Generic.IDictionary, Collections.Generic.ICollection>, Collections.Generic.IEnumerable>, Collections.IEnumerable + { + public JsonObject(Collections.Generic.IEnumerable> properties, JsonNodeOptions? options = null) { } + + public JsonObject(JsonNodeOptions? options = null) { } + + public int Count { get { throw null; } } + + bool Collections.Generic.ICollection>.IsReadOnly { get { throw null; } } + + Collections.Generic.ICollection Collections.Generic.IDictionary.Keys { get { throw null; } } + + Collections.Generic.ICollection Collections.Generic.IDictionary.Values { get { throw null; } } + + public void Add(Collections.Generic.KeyValuePair property) { } + + public void Add(string propertyName, JsonNode? value) { } + + public void Clear() { } + + public bool ContainsKey(string propertyName) { throw null; } + + public static JsonObject? Create(JsonElement element, JsonNodeOptions? options = null) { throw null; } + + public Collections.Generic.IEnumerator> GetEnumerator() { throw null; } + + public bool Remove(string propertyName) { throw null; } + + bool Collections.Generic.ICollection>.Contains(Collections.Generic.KeyValuePair item) { throw null; } + + void Collections.Generic.ICollection>.CopyTo(Collections.Generic.KeyValuePair[] array, int index) { } + + bool Collections.Generic.ICollection>.Remove(Collections.Generic.KeyValuePair item) { throw null; } + + bool Collections.Generic.IDictionary.TryGetValue(string propertyName, out JsonNode jsonNode) { throw null; } + + Collections.IEnumerator Collections.IEnumerable.GetEnumerator() { throw null; } + + public bool TryGetPropertyValue(string propertyName, out JsonNode? jsonNode) { throw null; } + + public override void WriteTo(Utf8JsonWriter writer, JsonSerializerOptions? options = null) { } + } + + public abstract partial class JsonValue : JsonNode + { + internal JsonValue() { } + + public static JsonValue Create(bool value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue Create(byte value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue Create(char value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue Create(DateTime value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue Create(DateTimeOffset value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue Create(decimal value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue Create(double value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue Create(Guid value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue Create(short value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue Create(int value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue Create(long value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue? Create(bool? value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue? Create(byte? value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue? Create(char? value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue? Create(DateTime? value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue? Create(DateTimeOffset? value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue? Create(decimal? value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue? Create(double? value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue? Create(Guid? value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue? Create(short? value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue? Create(int? value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue? Create(long? value, JsonNodeOptions? options = null) { throw null; } + + [CLSCompliant(false)] + public static JsonValue? Create(sbyte? value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue? Create(float? value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue? Create(JsonElement? value, JsonNodeOptions? options = null) { throw null; } + + [CLSCompliant(false)] + public static JsonValue? Create(ushort? value, JsonNodeOptions? options = null) { throw null; } + + [CLSCompliant(false)] + public static JsonValue? Create(uint? value, JsonNodeOptions? options = null) { throw null; } + + [CLSCompliant(false)] + public static JsonValue? Create(ulong? value, JsonNodeOptions? options = null) { throw null; } + + [CLSCompliant(false)] + public static JsonValue Create(sbyte value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue Create(float value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue? Create(string? value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue? Create(JsonElement value, JsonNodeOptions? options = null) { throw null; } + + [CLSCompliant(false)] + public static JsonValue Create(ushort value, JsonNodeOptions? options = null) { throw null; } + + [CLSCompliant(false)] + public static JsonValue Create(uint value, JsonNodeOptions? options = null) { throw null; } + + [CLSCompliant(false)] + public static JsonValue Create(ulong value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue? Create(T? value, JsonNodeOptions? options = null) { throw null; } + + public static JsonValue? Create(T? value, Serialization.Metadata.JsonTypeInfo jsonTypeInfo, JsonNodeOptions? options = null) { throw null; } + + public abstract bool TryGetValue(out T? value); + } +} + +namespace System.Text.Json.Serialization +{ + public partial interface IJsonOnDeserialized + { + void OnDeserialized(); + } + + public partial interface IJsonOnDeserializing + { + void OnDeserializing(); + } + + public partial interface IJsonOnSerialized + { + void OnSerialized(); + } + + public partial interface IJsonOnSerializing + { + void OnSerializing(); + } + + public abstract partial class JsonAttribute : Attribute + { + } + + [AttributeUsage(AttributeTargets.Constructor, AllowMultiple = false)] + public sealed partial class JsonConstructorAttribute : JsonAttribute + { + } + + public abstract partial class JsonConverter + { + internal JsonConverter() { } + + public abstract Type? Type { get; } + + public abstract bool CanConvert(Type typeToConvert); + } + + [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Interface, AllowMultiple = false)] + public partial class JsonConverterAttribute : JsonAttribute + { + protected JsonConverterAttribute() { } + + public JsonConverterAttribute(Type converterType) { } + + public Type? ConverterType { get { throw null; } } + + public virtual JsonConverter? CreateConverter(Type typeToConvert) { throw null; } + } + + public abstract partial class JsonConverterFactory : JsonConverter + { + protected JsonConverterFactory() { } + + public sealed override Type? Type { get { throw null; } } + + public abstract JsonConverter? CreateConverter(Type typeToConvert, JsonSerializerOptions options); + } + + public abstract partial class JsonConverter : JsonConverter + { + protected internal JsonConverter() { } + + public virtual bool HandleNull { get { throw null; } } + + public sealed override Type Type { get { throw null; } } + + public override bool CanConvert(Type typeToConvert) { throw null; } + + public abstract T? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options); + public virtual T ReadAsPropertyName(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { throw null; } + + public abstract void Write(Utf8JsonWriter writer, T value, JsonSerializerOptions options); + public virtual void WriteAsPropertyName(Utf8JsonWriter writer, T value, JsonSerializerOptions options) { } + } + + [AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface, AllowMultiple = true, Inherited = false)] + public partial class JsonDerivedTypeAttribute : JsonAttribute + { + public JsonDerivedTypeAttribute(Type derivedType, int typeDiscriminator) { } + + public JsonDerivedTypeAttribute(Type derivedType, string typeDiscriminator) { } + + public JsonDerivedTypeAttribute(Type derivedType) { } + + public Type DerivedType { get { throw null; } } + + public object? TypeDiscriminator { get { throw null; } } + } + + [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)] + public sealed partial class JsonExtensionDataAttribute : JsonAttribute + { + } + + [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)] + public sealed partial class JsonIgnoreAttribute : JsonAttribute + { + public JsonIgnoreCondition Condition { get { throw null; } set { } } + } + + public enum JsonIgnoreCondition + { + Never = 0, + Always = 1, + WhenWritingDefault = 2, + WhenWritingNull = 3 + } + + [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)] + public sealed partial class JsonIncludeAttribute : JsonAttribute + { + } + + public enum JsonKnownNamingPolicy + { + Unspecified = 0, + CamelCase = 1, + SnakeCaseLower = 2, + SnakeCaseUpper = 3, + KebabCaseLower = 4, + KebabCaseUpper = 5 + } + + public sealed partial class JsonNumberEnumConverter : JsonConverterFactory where TEnum : struct, Enum + { + public override bool CanConvert(Type typeToConvert) { throw null; } + + public override JsonConverter? CreateConverter(Type typeToConvert, JsonSerializerOptions options) { throw null; } + } + + [Flags] + public enum JsonNumberHandling + { + Strict = 0, + AllowReadingFromString = 1, + WriteAsString = 2, + AllowNamedFloatingPointLiterals = 4 + } + + [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)] + public sealed partial class JsonNumberHandlingAttribute : JsonAttribute + { + public JsonNumberHandlingAttribute(JsonNumberHandling handling) { } + + public JsonNumberHandling Handling { get { throw null; } } + } + + public enum JsonObjectCreationHandling + { + Replace = 0, + Populate = 1 + } + + [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Interface, AllowMultiple = false)] + public sealed partial class JsonObjectCreationHandlingAttribute : JsonAttribute + { + public JsonObjectCreationHandlingAttribute(JsonObjectCreationHandling handling) { } + + public JsonObjectCreationHandling Handling { get { throw null; } } + } + + [AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface, AllowMultiple = false, Inherited = false)] + public sealed partial class JsonPolymorphicAttribute : JsonAttribute + { + public bool IgnoreUnrecognizedTypeDiscriminators { get { throw null; } set { } } + + public string? TypeDiscriminatorPropertyName { get { throw null; } set { } } + + public JsonUnknownDerivedTypeHandling UnknownDerivedTypeHandling { get { throw null; } set { } } + } + + [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)] + public sealed partial class JsonPropertyNameAttribute : JsonAttribute + { + public JsonPropertyNameAttribute(string name) { } + + public string Name { get { throw null; } } + } + + [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)] + public sealed partial class JsonPropertyOrderAttribute : JsonAttribute + { + public JsonPropertyOrderAttribute(int order) { } + + public int Order { get { throw null; } } + } + + [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)] + public sealed partial class JsonRequiredAttribute : JsonAttribute + { + } + + [AttributeUsage(AttributeTargets.Class, AllowMultiple = true)] + public sealed partial class JsonSerializableAttribute : JsonAttribute + { + public JsonSerializableAttribute(Type type) { } + + public JsonSourceGenerationMode GenerationMode { get { throw null; } set { } } + + public string? TypeInfoPropertyName { get { throw null; } set { } } + } + + public abstract partial class JsonSerializerContext : Metadata.IJsonTypeInfoResolver + { + protected JsonSerializerContext(JsonSerializerOptions? options) { } + + protected abstract JsonSerializerOptions? GeneratedSerializerOptions { get; } + + public JsonSerializerOptions Options { get { throw null; } } + + public abstract Metadata.JsonTypeInfo? GetTypeInfo(Type type); + Metadata.JsonTypeInfo Metadata.IJsonTypeInfoResolver.GetTypeInfo(Type type, JsonSerializerOptions options) { throw null; } + } + + [Flags] + public enum JsonSourceGenerationMode + { + Default = 0, + Metadata = 1, + Serialization = 2 + } + + [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)] + public sealed partial class JsonSourceGenerationOptionsAttribute : JsonAttribute + { + public JsonSourceGenerationOptionsAttribute() { } + + public JsonSourceGenerationOptionsAttribute(JsonSerializerDefaults defaults) { } + + public bool AllowTrailingCommas { get { throw null; } set { } } + + public Type[]? Converters { get { throw null; } set { } } + + public int DefaultBufferSize { get { throw null; } set { } } + + public JsonIgnoreCondition DefaultIgnoreCondition { get { throw null; } set { } } + + public JsonKnownNamingPolicy DictionaryKeyPolicy { get { throw null; } set { } } + + public JsonSourceGenerationMode GenerationMode { get { throw null; } set { } } + + public bool IgnoreReadOnlyFields { get { throw null; } set { } } + + public bool IgnoreReadOnlyProperties { get { throw null; } set { } } + + public bool IncludeFields { get { throw null; } set { } } + + public int MaxDepth { get { throw null; } set { } } + + public JsonNumberHandling NumberHandling { get { throw null; } set { } } + + public JsonObjectCreationHandling PreferredObjectCreationHandling { get { throw null; } set { } } + + public bool PropertyNameCaseInsensitive { get { throw null; } set { } } + + public JsonKnownNamingPolicy PropertyNamingPolicy { get { throw null; } set { } } + + public JsonCommentHandling ReadCommentHandling { get { throw null; } set { } } + + public JsonUnknownTypeHandling UnknownTypeHandling { get { throw null; } set { } } + + public JsonUnmappedMemberHandling UnmappedMemberHandling { get { throw null; } set { } } + + public bool UseStringEnumConverter { get { throw null; } set { } } + + public bool WriteIndented { get { throw null; } set { } } + } + + public partial class JsonStringEnumConverter : JsonConverterFactory + { + public JsonStringEnumConverter() { } + + public JsonStringEnumConverter(JsonNamingPolicy? namingPolicy = null, bool allowIntegerValues = true) { } + + public sealed override bool CanConvert(Type typeToConvert) { throw null; } + + public sealed override JsonConverter CreateConverter(Type typeToConvert, JsonSerializerOptions options) { throw null; } + } + + public partial class JsonStringEnumConverter : JsonConverterFactory where TEnum : struct, Enum + { + public JsonStringEnumConverter() { } + + public JsonStringEnumConverter(JsonNamingPolicy? namingPolicy = null, bool allowIntegerValues = true) { } + + public sealed override bool CanConvert(Type typeToConvert) { throw null; } + + public sealed override JsonConverter? CreateConverter(Type typeToConvert, JsonSerializerOptions options) { throw null; } + } + + public enum JsonUnknownDerivedTypeHandling + { + FailSerialization = 0, + FallBackToBaseType = 1, + FallBackToNearestAncestor = 2 + } + + public enum JsonUnknownTypeHandling + { + JsonElement = 0, + JsonNode = 1 + } + + public enum JsonUnmappedMemberHandling + { + Skip = 0, + Disallow = 1 + } + + [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Interface, AllowMultiple = false, Inherited = false)] + public partial class JsonUnmappedMemberHandlingAttribute : JsonAttribute + { + public JsonUnmappedMemberHandlingAttribute(JsonUnmappedMemberHandling unmappedMemberHandling) { } + + public JsonUnmappedMemberHandling UnmappedMemberHandling { get { throw null; } } + } + + public abstract partial class ReferenceHandler + { + public static ReferenceHandler IgnoreCycles { get { throw null; } } + + public static ReferenceHandler Preserve { get { throw null; } } + + public abstract ReferenceResolver CreateResolver(); + } + + public sealed partial class ReferenceHandler : ReferenceHandler where T : ReferenceResolver, new() + { + public override ReferenceResolver CreateResolver() { throw null; } + } + + public abstract partial class ReferenceResolver + { + public abstract void AddReference(string referenceId, object value); + public abstract string GetReference(object value, out bool alreadyExists); + public abstract object ResolveReference(string referenceId); + } +} + +namespace System.Text.Json.Serialization.Metadata +{ + public partial class DefaultJsonTypeInfoResolver : IJsonTypeInfoResolver + { + public Collections.Generic.IList> Modifiers { get { throw null; } } + + public virtual JsonTypeInfo GetTypeInfo(Type type, JsonSerializerOptions options) { throw null; } + } + + public partial interface IJsonTypeInfoResolver + { + JsonTypeInfo? GetTypeInfo(Type type, JsonSerializerOptions options); + } + + public sealed partial class JsonCollectionInfoValues + { + public JsonTypeInfo ElementInfo { get { throw null; } init { } } + + public JsonTypeInfo? KeyInfo { get { throw null; } init { } } + + public JsonNumberHandling NumberHandling { get { throw null; } init { } } + + public Func? ObjectCreator { get { throw null; } init { } } + + public Action? SerializeHandler { get { throw null; } init { } } + } + + public readonly partial struct JsonDerivedType + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public JsonDerivedType(Type derivedType, int typeDiscriminator) { } + + public JsonDerivedType(Type derivedType, string typeDiscriminator) { } + + public JsonDerivedType(Type derivedType) { } + + public Type DerivedType { get { throw null; } } + + public object? TypeDiscriminator { get { throw null; } } + } + + public static partial class JsonMetadataServices + { + public static JsonConverter BooleanConverter { get { throw null; } } + + public static JsonConverter ByteArrayConverter { get { throw null; } } + + public static JsonConverter ByteConverter { get { throw null; } } + + public static JsonConverter CharConverter { get { throw null; } } + + public static JsonConverter DateTimeConverter { get { throw null; } } + + public static JsonConverter DateTimeOffsetConverter { get { throw null; } } + + public static JsonConverter DecimalConverter { get { throw null; } } + + public static JsonConverter DoubleConverter { get { throw null; } } + + public static JsonConverter GuidConverter { get { throw null; } } + + public static JsonConverter Int16Converter { get { throw null; } } + + public static JsonConverter Int32Converter { get { throw null; } } + + public static JsonConverter Int64Converter { get { throw null; } } + + public static JsonConverter JsonArrayConverter { get { throw null; } } + + public static JsonConverter JsonDocumentConverter { get { throw null; } } + + public static JsonConverter JsonElementConverter { get { throw null; } } + + public static JsonConverter JsonNodeConverter { get { throw null; } } + + public static JsonConverter JsonObjectConverter { get { throw null; } } + + public static JsonConverter JsonValueConverter { get { throw null; } } + + public static JsonConverter> MemoryByteConverter { get { throw null; } } + + public static JsonConverter ObjectConverter { get { throw null; } } + + public static JsonConverter> ReadOnlyMemoryByteConverter { get { throw null; } } + + [CLSCompliant(false)] + public static JsonConverter SByteConverter { get { throw null; } } + + public static JsonConverter SingleConverter { get { throw null; } } + + public static JsonConverter StringConverter { get { throw null; } } + + public static JsonConverter TimeSpanConverter { get { throw null; } } + + [CLSCompliant(false)] + public static JsonConverter UInt16Converter { get { throw null; } } + + [CLSCompliant(false)] + public static JsonConverter UInt32Converter { get { throw null; } } + + [CLSCompliant(false)] + public static JsonConverter UInt64Converter { get { throw null; } } + + public static JsonConverter UriConverter { get { throw null; } } + + public static JsonConverter VersionConverter { get { throw null; } } + + public static JsonTypeInfo CreateArrayInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) { throw null; } + + public static JsonTypeInfo CreateConcurrentQueueInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) + where TCollection : Collections.Concurrent.ConcurrentQueue { throw null; } + + public static JsonTypeInfo CreateConcurrentStackInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) + where TCollection : Collections.Concurrent.ConcurrentStack { throw null; } + + public static JsonTypeInfo CreateDictionaryInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) + where TCollection : Collections.Generic.Dictionary { throw null; } + + public static JsonTypeInfo CreateIAsyncEnumerableInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) + where TCollection : Collections.Generic.IAsyncEnumerable { throw null; } + + public static JsonTypeInfo CreateICollectionInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) + where TCollection : Collections.Generic.ICollection { throw null; } + + public static JsonTypeInfo CreateIDictionaryInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) + where TCollection : Collections.IDictionary { throw null; } + + public static JsonTypeInfo CreateIDictionaryInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) + where TCollection : Collections.Generic.IDictionary { throw null; } + + public static JsonTypeInfo CreateIEnumerableInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) + where TCollection : Collections.IEnumerable { throw null; } + + public static JsonTypeInfo CreateIEnumerableInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) + where TCollection : Collections.Generic.IEnumerable { throw null; } + + public static JsonTypeInfo CreateIListInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) + where TCollection : Collections.IList { throw null; } + + public static JsonTypeInfo CreateIListInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) + where TCollection : Collections.Generic.IList { throw null; } + + public static JsonTypeInfo CreateImmutableDictionaryInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo, Func>, TCollection> createRangeFunc) + where TCollection : Collections.Generic.IReadOnlyDictionary { throw null; } + + public static JsonTypeInfo CreateImmutableEnumerableInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo, Func, TCollection> createRangeFunc) + where TCollection : Collections.Generic.IEnumerable { throw null; } + + public static JsonTypeInfo CreateIReadOnlyDictionaryInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) + where TCollection : Collections.Generic.IReadOnlyDictionary { throw null; } + + public static JsonTypeInfo CreateISetInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) + where TCollection : Collections.Generic.ISet { throw null; } + + public static JsonTypeInfo CreateListInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) + where TCollection : Collections.Generic.List { throw null; } + + public static JsonTypeInfo> CreateMemoryInfo(JsonSerializerOptions options, JsonCollectionInfoValues> collectionInfo) { throw null; } + + public static JsonTypeInfo CreateObjectInfo(JsonSerializerOptions options, JsonObjectInfoValues objectInfo) { throw null; } + + public static JsonPropertyInfo CreatePropertyInfo(JsonSerializerOptions options, JsonPropertyInfoValues propertyInfo) { throw null; } + + public static JsonTypeInfo CreateQueueInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo, Action addFunc) + where TCollection : Collections.IEnumerable { throw null; } + + public static JsonTypeInfo CreateQueueInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) + where TCollection : Collections.Generic.Queue { throw null; } + + public static JsonTypeInfo> CreateReadOnlyMemoryInfo(JsonSerializerOptions options, JsonCollectionInfoValues> collectionInfo) { throw null; } + + public static JsonTypeInfo CreateStackInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo, Action addFunc) + where TCollection : Collections.IEnumerable { throw null; } + + public static JsonTypeInfo CreateStackInfo(JsonSerializerOptions options, JsonCollectionInfoValues collectionInfo) + where TCollection : Collections.Generic.Stack { throw null; } + + public static JsonTypeInfo CreateValueInfo(JsonSerializerOptions options, JsonConverter converter) { throw null; } + + public static JsonConverter GetEnumConverter(JsonSerializerOptions options) + where T : struct, Enum { throw null; } + + public static JsonConverter GetNullableConverter(JsonSerializerOptions options) + where T : struct { throw null; } + + public static JsonConverter GetNullableConverter(JsonTypeInfo underlyingTypeInfo) + where T : struct { throw null; } + + public static JsonConverter GetUnsupportedTypeConverter() { throw null; } + } + + public sealed partial class JsonObjectInfoValues + { + public Func? ConstructorParameterMetadataInitializer { get { throw null; } init { } } + + public JsonNumberHandling NumberHandling { get { throw null; } init { } } + + public Func? ObjectCreator { get { throw null; } init { } } + + public Func? ObjectWithParameterizedConstructorCreator { get { throw null; } init { } } + + public Func? PropertyMetadataInitializer { get { throw null; } init { } } + + public Action? SerializeHandler { get { throw null; } init { } } + } + + public sealed partial class JsonParameterInfoValues + { + public object? DefaultValue { get { throw null; } init { } } + + public bool HasDefaultValue { get { throw null; } init { } } + + public string Name { get { throw null; } init { } } + + public Type ParameterType { get { throw null; } init { } } + + public int Position { get { throw null; } init { } } + } + + public partial class JsonPolymorphismOptions + { + public Collections.Generic.IList DerivedTypes { get { throw null; } } + + public bool IgnoreUnrecognizedTypeDiscriminators { get { throw null; } set { } } + + public string TypeDiscriminatorPropertyName { get { throw null; } set { } } + + public JsonUnknownDerivedTypeHandling UnknownDerivedTypeHandling { get { throw null; } set { } } + } + + public abstract partial class JsonPropertyInfo + { + internal JsonPropertyInfo() { } + + public System.Reflection.ICustomAttributeProvider? AttributeProvider { get { throw null; } set { } } + + public JsonConverter? CustomConverter { get { throw null; } set { } } + + public Func? Get { get { throw null; } set { } } + + public bool IsExtensionData { get { throw null; } set { } } + + public bool IsRequired { get { throw null; } set { } } + + public string Name { get { throw null; } set { } } + + public JsonNumberHandling? NumberHandling { get { throw null; } set { } } + + public JsonObjectCreationHandling? ObjectCreationHandling { get { throw null; } set { } } + + public JsonSerializerOptions Options { get { throw null; } } + + public int Order { get { throw null; } set { } } + + public Type PropertyType { get { throw null; } } + + public Action? Set { get { throw null; } set { } } + + public Func? ShouldSerialize { get { throw null; } set { } } + } + + public sealed partial class JsonPropertyInfoValues + { + public JsonConverter? Converter { get { throw null; } init { } } + + public Type DeclaringType { get { throw null; } init { } } + + public Func? Getter { get { throw null; } init { } } + + public bool HasJsonInclude { get { throw null; } init { } } + + public JsonIgnoreCondition? IgnoreCondition { get { throw null; } init { } } + + public bool IsExtensionData { get { throw null; } init { } } + + public bool IsProperty { get { throw null; } init { } } + + public bool IsPublic { get { throw null; } init { } } + + public bool IsVirtual { get { throw null; } init { } } + + public string? JsonPropertyName { get { throw null; } init { } } + + public JsonNumberHandling? NumberHandling { get { throw null; } init { } } + + public string PropertyName { get { throw null; } init { } } + + public JsonTypeInfo PropertyTypeInfo { get { throw null; } init { } } + + public Action? Setter { get { throw null; } init { } } + } + + public abstract partial class JsonTypeInfo + { + internal JsonTypeInfo() { } + + public JsonConverter Converter { get { throw null; } } + + public Func? CreateObject { get { throw null; } set { } } + + public bool IsReadOnly { get { throw null; } } + + public JsonTypeInfoKind Kind { get { throw null; } } + + public JsonNumberHandling? NumberHandling { get { throw null; } set { } } + + public Action? OnDeserialized { get { throw null; } set { } } + + public Action? OnDeserializing { get { throw null; } set { } } + + public Action? OnSerialized { get { throw null; } set { } } + + public Action? OnSerializing { get { throw null; } set { } } + + public JsonSerializerOptions Options { get { throw null; } } + + public IJsonTypeInfoResolver? OriginatingResolver { get { throw null; } set { } } + + public JsonPolymorphismOptions? PolymorphismOptions { get { throw null; } set { } } + + public JsonObjectCreationHandling? PreferredPropertyObjectCreationHandling { get { throw null; } set { } } + + public Collections.Generic.IList Properties { get { throw null; } } + + public Type Type { get { throw null; } } + + public JsonUnmappedMemberHandling? UnmappedMemberHandling { get { throw null; } set { } } + + public JsonPropertyInfo CreateJsonPropertyInfo(Type propertyType, string name) { throw null; } + + public static JsonTypeInfo CreateJsonTypeInfo(Type type, JsonSerializerOptions options) { throw null; } + + public static JsonTypeInfo CreateJsonTypeInfo(JsonSerializerOptions options) { throw null; } + + public void MakeReadOnly() { } + } + + public enum JsonTypeInfoKind + { + None = 0, + Object = 1, + Enumerable = 2, + Dictionary = 3 + } + + public static partial class JsonTypeInfoResolver + { + public static IJsonTypeInfoResolver Combine(params IJsonTypeInfoResolver?[] resolvers) { throw null; } + + public static IJsonTypeInfoResolver WithAddedModifier(this IJsonTypeInfoResolver resolver, Action modifier) { throw null; } + } + + public sealed partial class JsonTypeInfo : JsonTypeInfo + { + internal JsonTypeInfo() { } + + public new Func? CreateObject { get { throw null; } set { } } + + public Action? SerializeHandler { get { throw null; } } + } +} \ No newline at end of file diff --git a/src/referencePackages/src/system.text.json/8.0.3/system.text.json.nuspec b/src/referencePackages/src/system.text.json/8.0.3/system.text.json.nuspec new file mode 100644 index 0000000000..9f13ebc198 --- /dev/null +++ b/src/referencePackages/src/system.text.json/8.0.3/system.text.json.nuspec @@ -0,0 +1,38 @@ + + + + System.Text.Json + 8.0.3 + Microsoft + MIT + https://licenses.nuget.org/MIT + https://dot.net/ + Provides high-performance and low-allocating types that serialize objects to JavaScript Object Notation (JSON) text and deserialize JSON text to objects, with UTF-8 support built-in. Also provides types to read and write JSON text encoded as UTF-8, and to create an in-memory document object model (DOM), that is read-only, for random access of the JSON elements within a structured view of the data. + +The System.Text.Json library is built-in as part of the shared framework in .NET Runtime. The package can be installed when you need to use it in other target frameworks. + https://go.microsoft.com/fwlink/?LinkID=799421 + © Microsoft Corporation. All rights reserved. + true + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file