I have a preblem about get json data form url
example url:
this url is give .txt and .txt have json data
I have no idea to get json data in .txt for show in page
Thanks for help me :)
I have a preblem about get json data form url
example url:
this url is give .txt and .txt have json data
I have no idea to get json data in .txt for show in page
Thanks for help me :)
The data is in JSONP format, e.g. JSON wrapped in a callback
More information here: https://developers.google.com/books/
$.ajax({
url: "https://books.google.com/books?bibkeys=ISBN:1118691784,OCLC:879947237,LCCN:&jscmd=viewapi",
dataType: "jsonp",
jsonpCallback: "updateGBSCover"
});
function updateGBSCover(data) {
// console.log(data);
$("#result").append($('<img/>',{"src": data["OCLC:879947237"].thumbnail_url}));
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div id="result"></div>