I got an URL, for example https://mycustomjson/<api token>/result?=vars
. I want to import this JSON file into my wordpress site.
While I got the API token to access the data, I do not know how to generate HTML out of it. I know there is a .getJSON()
function in jQuery .
Is there a way to just display the JSON file to find out, which information are stored in it (and how they are labeled/named? I cannot just open the URL in my browser.
Something like this, maybe
jQuery.getJSON( "https://mycustomjson/<api token>/result?=vars" , function(data) {console.log(data)} );
All that does is write the content of data
to the console. Open your browser's javascript console to see it. (See eg https://webmasters.stackexchange.com/questions/8525/how-to-open-the-javascript-console-in-different-browsers )
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.