Support » Plugin: JSON API » JSON API returning no response

  • I am working to get the json api plugin working properly on a fresh install of wordpress.

    I am using jquery to instigate a json request and Firebug is reporting that the request is in fact sent, but there is absolutely no response. Firebug is displaying the GET request in red in the console with a status code of 200 OK. Its kinda bizarre. I’ve tested to make sure I can make other json requests and they come through fine.

    The jquery I’m using is this:

    url: “wordpressinstall/?json=1”,
    dataType: “json”,
    success: function(data) { console.log(data); }

    Has anybody experienced a similar problem?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Alright. I believe I’ve found the answer to my dilema here.

    I have wordpress installed in a directory underneath the main domain aka: I had created a page under the main domain ( which was outside of the wordpress system. But I was using javascript to call into wordpressinstall.

    Apparently, a fit is thrown when this happens. Apparently, if your going to make json requests you must be within the same directory. The exception, I assume, is if you use jsonp with a callback.

    Or, another option is to set uri handling to default in wordpress and stick with the, etc, etc approach.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘JSON API returning no response’ is closed to new replies.