Deserializing JSON data to C# using JSON.NET

前端 未结 7 1715
离开以前
离开以前 2020-11-22 04:01

I\'m relatively new to working with C# and JSON data and am seeking guidance. I\'m using C# 3.0, with .NET3.5SP1, and JSON.NET 3.5r6.

I have a defined C# class that

相关标签:
7条回答
  • 2020-11-22 05:01

    Use

    var rootObject =  JsonConvert.DeserializeObject<RootObject>(string json);
    

    Create your classes on JSON 2 C#


    Json.NET documentation: Serializing and Deserializing JSON with Json.NET

    0 讨论(0)
提交回复
热议问题