I am trying to view the data retrieved from this function in order to parse the json, but I can’t view the ‘data’ within the function. Please can you tell me what I am doing wrong?
My code is here: http://jsfiddle.net/sbbc7/4/
$.getJSON("api.forrst.com/api/v2/user/posts?username=_max&callback=?", function(data) {
#("forrst").append(data);
});
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
<div id="forrst">
</div>
You have probably meant
instead of
And you need to specify which key exactly you want to append. For example,
http://jsfiddle.net/sbbc7/10/