problem with JSON.

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,159
Messages
2,570,879
Members
47,416
Latest member
LionelQ387

Latest Threads

Top