Deserializing JSON data to C# using JSON.NET

前端 未结 7 1721
离开以前
离开以前 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 04:45

    Assuming your sample data is correct, your givenname, and other entries wrapped in brackets are arrays in JS... you'll want to use List for those data types. and List for say accountstatusexpmaxdate... I think you example has the dates incorrectly formatted though, so uncertain as to what else is incorrect in your example.

    This is an old post, but wanted to make note of the issues.

提交回复
热议问题