Skip to main content

Bug Tracker

Side navigation

#6560 closed bug (invalid)

Opened May 12, 2010 09:03PM UTC

Closed May 13, 2010 12:06AM UTC

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

Attachments (0)
Change History (1)

Changed May 13, 2010 12:06AM UTC by dmethvin comment:1

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.