正如微软官方文档所述,该文档已于2019年9月进行更新,使用system.text.json
进行序列化或反序列化是可行的。
https://learn.microsoft.com/en-us/dotnet/standard/serialization/system-text-json-how-to
然而,当我在一个程序中尝试这样做时,我一直收到错误消息using system.text.json does not exist
。这让我偶然发现了这个Stack Overflow问题,在其中如上所示说: The type or namespace name 'Json' does not exist in the namespace 'System' (are you missing an assembly reference?) 其中提示该包已经停用,不应再使用。
是否有更新?或者是否有办法解决
system.text.json
的问题?