如何在 .netcore class 库中解析 JSON
How to parse JSON in a .netcore class library
我正在使用 .NET 核心 class 库项目模板创建跨平台库,需要使用 JSON 与 REST 服务通信。
我无法使用 JSON.NET Nuget 包或 "System.Runtime.Serialization.Json",因为这些包都不支持 .netcore。
出于遗留原因以及 netstandard1.2,我也以 net40 为目标。
我正在使用 .NET 核心 class 库项目模板创建跨平台库,需要使用 JSON 与 REST 服务通信。
我无法使用 JSON.NET Nuget 包或 "System.Runtime.Serialization.Json",因为这些包都不支持 .netcore。
出于遗留原因以及 netstandard1.2,我也以 net40 为目标。