I have json object like this, the site is running codeigniter which is ultimately the problem.
var obj = {
states : {
'state' : {cities : ['city', 'city2', 'another']},
}
}
the problem is some states have special characters like , or spaces. When those states get added I get a Disallowed Key Characters. error. If I remove the special chars and the space it works fine.
Do I have to resort to some other method?