I have a problem accessing JSON data. I\'m new to JSON and jquery so there is probably a easy solution to it and I would be glad to find out.
My jQuery:
I could be wrong, but I don't think the post method assumes a data return-type of json. You could set that by changing the ajax function to:
post
$.post( "currentPage.php", { 'currentPage': 1 }, function(data){ $("body").append(data); }, "json" );