Skip to main content

Bug Tracker

Side navigation

#5931 closed bug (invalid)

Opened January 26, 2010 07:13AM UTC

Closed November 01, 2010 05:35AM UTC

jQuery.parseJSON not working with single quotes

Reported by: rortelli Owned by:
Priority: major Milestone: 1.4.2
Component: core Version: 1.4.1
Keywords: Cc:
Blocked by: Blocking:
Description

var json = "{'instrumentType': 'funds', 'instrumentId':'123456', 'positionId':'789', 'quantity':'1000'}";

console.log($.parseJSON(json));

Attachments (0)
Change History (2)

Changed January 27, 2010 08:12AM UTC by alec comment:1

JSON specification requires double quotes. See json.org.

Changed November 01, 2010 05:35AM UTC by snover comment:2

resolution: → invalid
status: newclosed