Skip to content

Update DeserializeComplexJsonObject to .NET 11 - #2443

Open
vladimir-pecanac-main wants to merge 1 commit into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/67417-csharp-deserialize-complex-json-object
Open

vladimir-pecanac-main wants to merge 1 commit into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/67417-csharp-deserialize-complex-json-object

Conversation

@vladimir-pecanac-main

Copy link
Copy Markdown
Collaborator

Moves the three projects in json-csharp/DeserializeComplexJsonObject to net11.0 with Newtonsoft.Json 13.0.4, BenchmarkDotNet 0.15.8, MSTest 4.5.3, Microsoft.NET.Test.Sdk 18.12.0 and coverlet.collector 10.1.1. MicrosoftDeserializer now reuses one static JsonSerializerOptions instance, Program.cs calls the non-generic System.Text.Json method under its own heading and shows a JSON that does not match the classes, the benchmark runs in process, loads its input in GlobalSetup with Path.Combine and returns each result, and four new tests cover the nested mapping in both libraries, the default case-sensitive matching and the number-as-string exception.

Move all three projects to net11.0 and update Newtonsoft.Json, BenchmarkDotNet, MSTest, Test.Sdk and coverlet.
Reuse one cached JsonSerializerOptions instance, call the non-generic method in Program.cs, add a mismatched JSON
example, load the benchmark input in GlobalSetup with a portable path and return results, add four tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant