How do I parse this JSON with jQuery?
- by Mike
So I had this structure in xml and I was able to parse it successfully. Now what I have done is that I converted this xml into a JSON using www.xmltojson.org but I am not able to parse it . I am setting these files locally on we localhost web server:
<script>
$(function() {
$.ajax({
url:'feed.json',
dataType:'json',
type:'GET',
success:function(json) {
/// what to do here
}.
error: {
alert("Parse Failed");
}
});
});
</script>
I am trying to learn JSON, so I am little unsure as to where I am doing wrong, or even if that is the correct approah.
Thanks Mikey.