skip to Main Content

Asp.net – Deserialize an object that can have string or int from JSON format

How do I deserialize an object from JSON format with valid data using JsonConvert.DeserializeObject(useCaseData)? I tried it with JsonConvert.DeserializeObject<Dictionary<string, string>>(useCaseData) But I get this error : Newtonsoft.Json.JsonSerializationException: 'Error converting value 1 to type 'System.Collections.Generic.Dictionary`2[System.String,System.String]'. Path '', line 1, position 1.…

VIEW QUESTION

How to Convert my custom JSON data Object into Highcharts Angular Series data?

I have some JSON Data object and its needs to convert into Highchyour textarts Series data, I tried lot with my minimal knowledge in JS, but I can't: Json Object: {"Matrix":[{"mdate":2002-02-09,"mvalue":33.0,"mt":23,"mb":99}, {"mdate":2002-02-09,"mvalue":34.0,"mt":23,"mb":99}, {"mdate":2002-03-09,"mvalue":39.0,"mt":23,"mb":99}, {"mdate":2002-04-09,"mvalue":340.0,"mt":23,"mb":99}, {"mdate":2002-05-09,"mvalue":348.0,"mt":23,"mb":99} ] } The above data…

VIEW QUESTION
Back To Top
Search