Click here to Skip to main content
12,352,294 members (55,945 online)

Deserialize Json data containing Array

anurag.netdeveloper asked:

Open original thread
I have the following Json string, I can't completely deserialize in c# using dynamic variable, please help.


{
"data": [
{
"name": "query1",
"fql_result_set": [
{
"thread_id": "1920370693067",
"updated_time": 1340656102,
"subject": "",
"snippet": "Test",
"snippet_author": 100002153560476
}
]
},
{
"name": "query2",
"fql_result_set": [
{
"uid": 100002153560476,
"name": "Santosh Singh"
}
]
},
],
"attributes": [
{
"name": "a",
"data": [
"10",
"0",
"50"
],
"dataName": [
"2000248",
"2789290",
"2789291"
],
"dataValue": [
"a",
"b",
"c"
],

},
{
"data": [
"0",
"0",
"0",
"20"
],
"dataName": [
"49500000",
"49500001",
"49500002",
"49500003"
],
"dataValue": [
"a",
"v",
"v",
"d"
],

}
]
}
Tags: C# (C#4.0), JSON

Preview



When answering a question please:
  1. Read the question carefully.
  2. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
  3. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome.
Let's work to help developers, not make them feel stupid.
Please note that all posts will be submitted under the The Code Project Open License (CPOL).



Advertise | Privacy | Mobile
Web02 | 2.8.160621.1 | Last Updated 26 Mar 2009
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100