【问题标题】:I Want to know JSON Parsing Steps.我想知道 JSON 解析步骤。
【发布时间】:2018-08-30 17:59:15
【问题描述】:

enter link description here

请解析此链接并生成表格视图。

【问题讨论】:

标签: json nsurl objective-c-runtime


【解决方案1】:

对于 Visual Studio 2010

  1. 工具->扩展管理器---下载Nuget包管理器
  2. 重新加载 Visual Studio 新项目
  3. 右键单击项目,然后单击 NuGet 包管理器
  4. 按 Newtonsoft 搜索并安装 Newtonsoft Msgpack

使用 Newtonsoft.Json.Linq;

        string jsonD = @"{  
        'FirstName':'Mahabub',  
        'LastName':'Zaman'  
        }";
        var result = JObject.Parse(jsonD);

        Console.Write(result["FirstName"]);
        Console.Write(result["LastName"]);

        Console.ReadLine();

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-12-11
    • 1970-01-01
    • 1970-01-01
    • 2021-07-03
    • 1970-01-01
    相关资源
    最近更新 更多