Side navigation
#5897 closed bug (worksforme)
Opened January 22, 2010 12:24PM UTC
Closed November 22, 2010 05:01AM UTC
Last modified November 22, 2010 05:01AM UTC
Error parsing JSON data in Firefox
Reported by: | kalle707 | Owned by: | kalle707 |
---|---|---|---|
Priority: | low | Milestone: | |
Component: | ajax | Version: | 1.3.2 |
Keywords: | Ajax, Json | Cc: | |
Blocked by: | Blocking: |
Description
IE7 and Firefox3 have different results on parsing JSON from an Ajax request.
$.ajax({
url:'request.php',type:'POST',async:true,dataType:'json',
success:function(j) {
>>> here IE has 7 entries (correct)
Firefox has 6 entries (missing the first one)
}
});
This error occurs only on a special JSON string - mostly the function works fine. (String causing the error is attached)
I've tested this string with a simple script an eval() .. there are no difference between IE and Firefox - the diference occurs only in jQuery.
Attachments (1)
Change History (3)
Changed November 15, 2010 04:07AM UTC by comment:1
owner: | → kalle707 |
---|---|
status: | new → pending |
Changed November 22, 2010 05:01AM UTC by comment:2
resolution: | → worksforme |
---|---|
status: | pending → closed |
Tried your test case with Opera 10.63, Chrome, FF 3.6.12 and IE6 on jQuery 1.4.4. Couldn't reproduce your issue.
All browsers get the whole json object in the success callback.
Changed November 22, 2010 05:01AM UTC by comment:3
priority: | major → low |
---|
Please provide a complete test case. I agree the json string seems valid but perhaps it is a charset mismatch or other problem.