Deserializing JSON data to C# using JSON.NET

前端 未结 7 1720
离开以前
离开以前 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(string json);
    

    Create your classes on JSON 2 C#


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

提交回复
热议问题