So, I have successfully used getjson for page1, but now I am looking to do the same thing for page2 and then proceed with processing the sitecontent variable. Can someone help me figure out how to make two getjson requests - one for page1 and another for page2? I would like to merge the responses from both requests into a single variable.
<script>
$.getJSON('http://anyorigin.com/get?url=http://www.example.com/page1.php/&callback=?', function(data){
var siteContents = data.contents;
//process sitecontent further
});
</script>