This should work…
JavaScriptSerializer ser = new JavaScriptSerializer();
var records = new ser.Deserialize<List<Record>>(jsonData);
public class Person
{
public string Name;
public int Age;
public string Location;
}
public class Record
{
public Person record;
}
More Related Contents:
- Deserialize nested JSON into C# objects
- How can I parse JSON with C#?
- How to implement custom JsonConverter in JSON.NET?
- Deserializing JSON data to C# using JSON.NET
- Deserializing JSON to .NET object using Newtonsoft (or LINQ to JSON maybe?)
- Can I specify a path in an attribute to map a property in my class to a child property in my JSON?
- Deserializing JSON when sometimes array and sometimes object
- Parsing large JSON file in .NET
- Deserializing JSON with dynamic keys
- Json.NET deserialize or serialize json string and map properties to different property names defined at runtime
- How do I deserialize a complex JSON object in C# .NET?
- json deserialization to C# with dynamic keys [duplicate]
- How can I deserialize JSON with C#?
- How can I serialize and deserialize a type with a string member that contains “raw” JSON, without escaping the JSON in the process
- How to Deserialize JSON data?
- Handling decimal values in Newtonsoft.Json
- multiple JsonProperty Name assigned to single property
- Cannot deserialize the current JSON array (e.g. [1,2,3]) into type
- Deserializing heterogenous JSON array into covariant List using Json.NET
- Newtonsoft Json Deserialize Dictionary as Key/Value list from DataContractJsonSerializer
- DateTime column type becomes String type after deserializing DataTable
- Modify existing object with new partial JSON data using Json.NET
- json deserialize from legacy property names
- How to prevent a single object property from being converted to a DateTime when it is a string
- System.Text.Json – Deserialize nested object as string
- Json.NET: Deserializing nested dictionaries
- Deserializing a JSON file with JavaScriptSerializer()
- How to deserialize JSON to objects of the correct type, without having to define the type before hand?
- NewtonSoft.Json Serialize and Deserialize class with property of type IEnumerable
- How to Convert JSON object to Custom C# object?