Skip to content

Fix JsonValueConverter to handle array and object values in Dictionary<string, JsonValue> #115829

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Fix JsonValue deserialization for arrays and objects

9187e8c
Select commit
Loading
Failed to load commit list.
Draft

Fix JsonValueConverter to handle array and object values in Dictionary<string, JsonValue> #115829

Fix JsonValue deserialization for arrays and objects
9187e8c
Select commit
Loading
Failed to load commit list.
Azure Pipelines / runtime (Build tvossimulator-x64 Debug AllSubsets_Mono) cancelled May 21, 2025 in 16m 29s

Build tvossimulator-x64 Debug AllSubsets_Mono was canceled

Annotations

Check failure on line 34 in src/libraries/System.Text.Json/src/System/Text/Json/Serialization/Converters/Node/JsonValueConverter.cs

See this annotation in the file changed.

@azure-pipelines azure-pipelines / runtime (Build tvossimulator-x64 Debug AllSubsets_Mono)

src/libraries/System.Text.Json/src/System/Text/Json/Serialization/Converters/Node/JsonValueConverter.cs#L34

src/libraries/System.Text.Json/src/System/Text/Json/Serialization/Converters/Node/JsonValueConverter.cs(34,24): error CS0030: (NETCORE_ENGINEERING_TELEMETRY=Build) Cannot convert type 'System.Text.Json.Nodes.JsonObject' to 'System.Text.Json.Nodes.JsonValue'

Check failure on line 39 in src/libraries/System.Text.Json/src/System/Text/Json/Serialization/Converters/Node/JsonValueConverter.cs

See this annotation in the file changed.

@azure-pipelines azure-pipelines / runtime (Build tvossimulator-x64 Debug AllSubsets_Mono)

src/libraries/System.Text.Json/src/System/Text/Json/Serialization/Converters/Node/JsonValueConverter.cs#L39

src/libraries/System.Text.Json/src/System/Text/Json/Serialization/Converters/Node/JsonValueConverter.cs(39,24): error CS0030: (NETCORE_ENGINEERING_TELEMETRY=Build) Cannot convert type 'System.Text.Json.Nodes.JsonArray' to 'System.Text.Json.Nodes.JsonValue'

Check failure on line 36 in src/libraries/System.Text.Json/src/System/Text/Json/Serialization/Converters/Node/JsonValueConverter.cs

See this annotation in the file changed.

@azure-pipelines azure-pipelines / runtime (Build tvossimulator-x64 Debug AllSubsets_Mono)

src/libraries/System.Text.Json/src/System/Text/Json/Serialization/Converters/Node/JsonValueConverter.cs#L36

src/libraries/System.Text.Json/src/System/Text/Json/Serialization/Converters/Node/JsonValueConverter.cs(36,1): error SA1028: (NETCORE_ENGINEERING_TELEMETRY=Build) Code should not contain trailing whitespace (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1028.md)

Check failure on line 2953 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / runtime (Build tvossimulator-x64 Debug AllSubsets_Mono)

Build log #L2953

The Operation will be canceled. The next steps may not contain expected logs.

Check failure on line 2958 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / runtime (Build tvossimulator-x64 Debug AllSubsets_Mono)

Build log #L2958

The operation was canceled.