I have following json:
{
\"serverTime\": \"2013-08-12 02:45:55,558\",
\"data\": [
{
\"key1\": 1,
\"key2\": {},
If you're not averse to using Json.NET, you can do this:
var jsonString = @"
{
""serverTime"": ""2013-08-12 02:45:55,558"",
""data"": [
{
""key1"": 1,
""key2"": {},
""key3"": {
""key4"": [
""""
],
""key5"": ""test2""
},
""key7"": 0
},
{
""key8"": 1,
""key9"": {},
""key10"": {
""key4"": [
""""
],
""key9"": ""test2""
},
""key11"": 0
}
]
}";
var jsonResult = JsonConvert.DeserializeObject>(jsonString);
var firstItem = jsonResult["data"][0];
firstItem
would be an array of the first item in the data
array:
Hope this helps.