Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: JSON Parse Error

$
0
0
Re: JSON Parse Error
Web Connection 5.0
Re: JSON Parse Error
Dec. 13, 2012
09:16 am
3O00JVPNGShow this entire thread in new window
Gratar Image based on email address
From:Marty Glynn
To:Marty Glynn
I figured this out. Apparently, a JSON response needs quotes around the name of the object after jQuery 1.4. This works:


{"show":["FMLYNCMBB","FVRTFDB"], "hide":["STTFBRTH"]}


The response from the server below works in jQuery 1.3.2 but not in current versions. It's simple, but I can't see what I'm missing? What's wrong with that JSON object?

HTTP/1.1 200 OK
Content-Type: application/json
RequestId: 280_492E9A775EE5

{show:["FMLYNCMBB","FVRTFDB"], hide:["STTFBRTH"]}

this is the error message:

(new SyntaxError("JSON.parse: expected property name or '}'"


Viewing all articles
Browse latest Browse all 10393

Trending Articles