This is the model I'm using to deserialize.
C#
public class Info
{
public string description { get; set; }
public string[] tags { get; set; }
}
And this is the JSON I want to deserialize.
JSON
{
"description" : "aeiou",
"tags" : [ "a", "e", "i", "o" ]
}
When I try to deserealize the JSON object, It throws error. It works when I change the identifier from string[] to just string, but that's not the expected result. I also tried List and didn't work.
JavaScriptSerializer js = new JavaScriptSerializer();andvar result = js.Deserialize<Info>(json);