简体   繁体   中英

using Json in Portable Class Library

I'm attempting to load some data in a portable class library. The data is in JSON format. I need parse and work with this information. Unfortunately, it doesn't appear that System.Json is available. At the same time, I tried to include the Json.Net NuGet package without any luck.

How does one work with JSON data in a portable class library?

Thank you

JSON.NET is available in PCL, check these release notes:

Json.NET's major new feature this release is the portable class library assembly is available over NuGet. This is made possible by NuGet 2.1 supporting portable class libraries. Read more about NuGet 2.1 here .

  • Update NuGet
  • Get JSON.NET

可以使用Json.net pcl-如果找不到官方的nuget版本,则mvvmcross json插件包中或mvvmcross二进制文件git repo中包含一个稍旧的版本。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM