Repository navigation
System.Text.Json introduction: migrate sample to json-csharp/IntroductionToSystemTextJson (net11.0) - #2436
Open
vladimir-pecanac-main wants to merge 1 commit into
Conversation
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).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.