Title: [Plugin: JSON API] Not working in IE6
Last modified: August 19, 2016

---

# [Plugin: JSON API] Not working in IE6

 *  [Koshirosan](https://wordpress.org/support/users/koshirosan/)
 * (@koshirosan)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-json-api-not-working-in-ie6/)
 * Hi, I’m having a major problem – the JSON API will always throw a 400 error when
   accessed through IE6. I’m not entirely sure, but it may have something to do 
   with the rewrites. The odd thing is that it works in every other browser!
 * Even this fails:
 * `/json=1`
 * Any ideas?
 * [http://wordpress.org/extend/plugins/json-api/](http://wordpress.org/extend/plugins/json-api/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [dphiffer](https://wordpress.org/support/users/dphiffer/)
 * (@dphiffer)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-json-api-not-working-in-ie6/#post-1874304)
 * Hi Koshirosan,
 * Do you have a URL you could post here? Could it be that you’re leaving out the`?`
   symbol in the URL? i.e., `/?json=1` instead of `/json=1`.
 * Hope that helps,
    -Dan
 *  Thread Starter [Koshirosan](https://wordpress.org/support/users/koshirosan/)
 * (@koshirosan)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-json-api-not-working-in-ie6/#post-1874306)
 * Ah sorry that was my typo in that message – I was using the question mark. For
   anyone else that encounters this, I had two problems, one of which was my fault,
   the other not so much:
 * 1) When doing a JSON request via ajax, arguments should be passed in as an object
   under ‘data’, such as:
 *     ```
       var scope = this;
       $.ajax({
       	url: "a url",
       	data: {post_type: "my_post_type", id: 4, json: "get_post"},
       	dataType: "json",
       	scriptCharset: "utf-8",
       	type: "POST",
       	success: function(data, msg) {
       	scope.myData = data;
       	scope.onJSONLoadComplete();
       	},
       	error: function(request, status, error) {
       		alert("JSON Load Error- status:" + status + " Error: " + request.status);
       	}
       });
       ```
   
 * Doing a request leaving ‘data’ blank and having the ‘url’ like “www.mywebsite.
   com/?json=1&post_type=my_post_type&id=4” will work in the majority of browsers,
   but doesn’t work in IE6.
 * 2) IE6 has a bug that means doing the above with the GET method will result in
   a 400. This isn’t an issue with the JSON API, it’s a browser bug. This is simply
   solved by using POST instead.
 * Anyway hope this helps someone.
 * Thanks for the plugin dphiffer, it really is a major feature for WordPress.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin: JSON API] Not working in IE6’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/json-api.svg)
 * [JSON API](https://wordpress.org/plugins/json-api/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/json-api/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/json-api/)
 * [Active Topics](https://wordpress.org/support/plugin/json-api/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/json-api/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/json-api/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Koshirosan](https://wordpress.org/support/users/koshirosan/)
 * Last activity: [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-json-api-not-working-in-ie6/#post-1874306)
 * Status: not resolved