Skip to main content

Bug Tracker

Side navigation

#8687 closed bug (duplicate)

Opened March 29, 2011 12:49AM UTC

Closed March 29, 2011 12:35PM UTC

Last modified March 29, 2011 12:35PM UTC

improperly coded JSON string for empty array or object

Reported by: anonymous Owned by: anonymous
Priority: undecided Milestone:
Component: ajax Version: 1.5.1
Keywords: Cc:
Blocked by: Blocking:

When the data element of an ajax query includes either an empty object or empty array the buildParams function is improperly coding the value as nothing. Proper JSON coding for an empty array is '[]' and an empty object should be '{}'

I've checked the 1.5.1 source (line 6840) as well as 1.4.3 (line 5858.) Both exhibit this bug.

Attachments (0)
Change History (3)

Changed March 29, 2011 01:16AM UTC by rwaldron comment:1

component: unfiledajax
owner: → anonymous
status: newpending

Thanks for taking the time to contribute to the jQuery project! Please provide a reduced jsFiddle test case to help us assess your ticket!

Additionally, test against the jQuery 0 GIT version to ensure the issue still exists. Be Excellent to eachother!

Changed March 29, 2011 12:35PM UTC by dmethvin comment:2

resolution: → duplicate
status: pendingclosed

Changed March 29, 2011 12:35PM UTC by dmethvin comment:3

Duplicate of #6481.