Viewing 3 replies - 1 through 3 (of 3 total)
  • same my case, but this API is array mixed!

    javascript get only object style JSON, so remote access is impossible I knew.

    someone help this API to only object style I hope to

    Hi Joe, I’m interested too. Do you find any solution?

    A workaround could be enable CORS on your server:
    https://enable-cors.org/server.html

    Hope this help.

    jsonp is enabled via the _jsonp argument.

    here’s a sample jQuery ajax call:

    $.ajax({
    	type: "GET",
    	url: 'https://domain.com/wp-json/posts/<ID>/?_jsonp=?',
    	dataType: 'jsonp',
    }).success( function(response){
    	console.log(JSON.stringify(response));
    });
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Is JSONP format available?’ is closed to new replies.