I have to parse the JSON
string in to a name value pair list :
{"vars":[
{"name":"abcd","value":"true"},
{"name":"efgh","value":"false"},
{"name":"xyz","value":"sring1"},
{"name":"ghi","value":"string2"},
{"name":"jkl","value":"num1"}
],"OtherNames":["String12345"]}
I can not add the reference of newtonsoft
JsonConvert due to multiple parties involved .
With JavaScriptSerializer
i am able to get the json
converted to name value only when i have one value in the string
but not an array
JavaScriptSerializer jsSerializer = new JavaScriptSerializer();
Dictionary<string,string> dict = jsSerializer.Deserialize<Dictionary<string, string>>(jsonText);
I think the declaration which says i will get the array values is missing somewhere.