-edit- Maybe there is a solution by using attributes?
I found the weirdest json. It looks like the string below. The only way i can think of to handle it is to use an object array. I never seen ints and strings mixed in an array below.
I am then forced to typecast. Is there a better way to get the ints and string?
NOTE: The first array can have 0 to 20 elements. The array inside of it ALWAYS has 3 with the first two being ints and the 3rd a string. Maybe i can use this knowledge to my advantage?
{
var ser = new JavaScriptSerializer();
var o = ser.Deserialize<RootObj>(@"{""resources"": [[123,567,""<div ...""]]}");
var o2 = o.resources[0];
var v = (int)o2[1];
var sz = (string)o2[2];
}
class RootObj {
public object[][] resources;
}