Bug Tracker

Modify

Ticket #5931 (closed bug: invalid)

Opened 3 years ago

Last modified 3 years ago

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:
Blocking: Blocked by:

Description

var json = "{'instrumentType': 'funds', 'instrumentId':'123456', 'positionId':'789', 'quantity':'1000'}"; console.log($.parseJSON(json));

Change History

comment:1 Changed 3 years ago by alec

JSON specification requires double quotes. See json.org.

comment:2 Changed 3 years ago by snover

  • Status changed from new to closed
  • Resolution set to invalid

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.