System.Text.Json handles common JSON formats using JsonSerializerDefaults.Web


Today, when a colleague of the company was using .NET to process a system connection requirement, he found that the JSON format sent by the other party would use the format of “string” to express the digital data that should be “number”, which led him to use System.Text .Json ‘s JsonSerializer.Deserialize an error when deserializing. In this article, I will share a little-known secret that makes it easy for you to control various common JSON formats on the web.

continue reading

This article is reprinted from
This site is for inclusion only, and the copyright belongs to the original author.