Тема: Help with get request in Json format
Hi,
I'm trying to implement a feature in a program but i'm having troubles fetching the JSON url.
The url is
http://api.stopforumspam.org/api?json&a … l@here.com
And the code received should be something like this (the "var json" in this case is just an example)
var json = '{"success":1,"email":{"frequency":1,"appears":1,"confidence":0.03}}',
obj = JSON && JSON.parse(json) || $.parseJSON(json);
document.write('Is a Spammer? '+obj.email.appears+'<br>');
document.write('Last Seen: '+obj.email.lastseen+'');
Also is it possible to change 1 or 0 in obj.email.appears to yes or no?
Thanks