I've stored categories and their types in a dictionary in a .cs file, like this:
Dictionary<string, List<string>> jsonDic
To convert it into a JSON object string, I used the following logic:
JavaScriptSerializer jss = new JavaScriptSerializer();
string barJson = jss.Serialize(jsonDic);
string js = "TypesArray(" + barJson + ")";
ScriptManager.RegisterStartupScript(this, this.GetType(), "Startup1", js, true);
In my .js file, I'm receiving the following response:
The result is not in array form, so I can't index points as it's not an array. How should I proceed? I need to be able to index both categories and types associated with each category.