R
Ralph
Hi
I have problem converting JSON string to an array. The best way to
explain this is to show you some code. So :
try {
var response = that.AjaxReq.responseText.parseJSON();
} catch (myErr) {
alert('The fatal error occured. Please reload the page.');
return;
}
for(var index in response) {
alert(index);
}
Always at the end of the list I get alert message showing that index is
'toJSONString'.
I have no idea why it's happening.
PS: to create JSON strings and encode them I use functions from
http://www.json.org.
Thank you
I have problem converting JSON string to an array. The best way to
explain this is to show you some code. So :
try {
var response = that.AjaxReq.responseText.parseJSON();
} catch (myErr) {
alert('The fatal error occured. Please reload the page.');
return;
}
for(var index in response) {
alert(index);
}
Always at the end of the list I get alert message showing that index is
'toJSONString'.
I have no idea why it's happening.
PS: to create JSON strings and encode them I use functions from
http://www.json.org.
Thank you