Bug Tracker

Opened 10 years ago

Closed 10 years ago

#6560 closed bug (invalid)

Problem with getJSON

Reported by: gerardogup Owned by:
Priority: Milestone: 1.4.3
Component: ajax Version: 1.4.2
Keywords: getJSON, json Cc:
Blocked by: Blocking:

Description

I have an script working perfectly with verion 1.3.2. This script uses getJSON function. Nevertheless, when I upgrade to 1.4.1 or 1.4.2, it does not work. Callback function never fires and when i track the error using $.ajax function, there is a parser error. This error says that i have an invalid JSON. This is not true because using 1.3.2 works fine. JSON structure has the next format... { variable1 : 'value1', variable2 : 'value2', variable3 : 'value3' } Thank you for your support. Gerardo

Change History (1)

comment:1 Changed 10 years ago by dmethvin

Resolution: invalid
Status: newclosed

That is not valid JSON, the variables and values need to be quoted with double quotes. See json.org for the syntax. If you need to parse invalid JSON, get the response as text and eval() it yourself.

Note: See TracTickets for help on using tickets.