C# parse array in json -
i have following json
structure:
{ [{ "name": "2542", "type": "folder", "size": 0, "time": 0, "items": [{ "name": "10-1432927746000.ksf", "type": "file", "size": 225, "time": 1433019520, "items": null, "info": { "seller": 10, "count": 2 } }], "info": null }] }
how can parse c#? have try var results = jsonconvert.deserializeobject<dynamic>(json)
result error:
invalid property identifier character: [. path '', line 1, position 1.
complementing @stephen awswer, can yet use inner array, in this sample.
[{ "name": "2542", "type": "folder", "size": 0, "time": 0, "items": [{ "name": "10-1432927746000.ksf", "type": "file", "size": 225, "time": 1433019520, "items": null, "info": { "seller": 10, "count": 2 } }], "info": null }]
anyway, issue seems original json realy. =)
Comments
Post a Comment