I\'m writing an app that gets a Json
list of objects like this:
[
{
\"ObjectType\": \"apple\",
\"ObjectSize\": 35,
\"ObjectC
Take a look at newtonsoft's JSON library
With it you can do stuff like:
...
public class Movie
{
public string Name;
public DateTime ReleaseDate;
public string[] Genres;
}
......
string json = @"{
'Name': 'Bad Boys',
'ReleaseDate': '1995-4-7T00:00:00',
'Genres': [
'Action',
'Comedy'
]
}";
Movie m = JsonConvert.DeserializeObject(json);
string name = m.Name;
// Bad Boys