Skip to content

System.Text.Json introduction: migrate sample to json-csharp/IntroductionToSystemTextJson (net11.0) - #2436

Open
vladimir-pecanac-main wants to merge 1 commit into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/58910-introduction-system-text-json-examples
Open

vladimir-pecanac-main wants to merge 1 commit into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/58910-introduction-system-text-json-examples

Conversation

@vladimir-pecanac-main

Copy link
Copy Markdown
Collaborator

Moves the sample for the article Introduction to System.Text.Json Through Examples from its standalone repository into json-csharp/IntroductionToSystemTextJson on net11.0: a console project on top-level statements with the six serialization and deserialization examples (typos and the mislabeled pet age fixed, the JsonDocument now disposed), a Web API on minimal hosting with Microsoft.AspNetCore.OpenApi in place of Swashbuckle, a named HttpClient, POST examples for PostAsJsonAsync, and a new xUnit test project with ten tests that run offline, the Web API ones through WebApplicationFactory in process.

Migrates the System.Text.Json introduction sample from its standalone repository into json-csharp. Console project on top-level statements, Web API on minimal hosting with Microsoft.AspNetCore.OpenApi instead of Swashbuckle, a named HttpClient on localhost:5000, POST examples for PostAsJsonAsync, and a new xUnit test project (ten tests, WebApplicationFactory in process).
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