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 https://blog.miniasp.com/post/2022/11/04/Using-JsonSerializerDefaults-Web-for-System-Text-Json-Serialization
This site is for inclusion only, and the copyright belongs to the original author.