File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes I'll never get JSON syntax straight Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "I Watch "I New topic
Author

I'll never get JSON syntax straight

Allen Williams
Ranch Hand

Joined: Sep 04, 2006
Posts: 136
I'm returning the following string from a server (this is it literally, exact quotes, etc.):

In my javascript, I have:

which gives this error:

Can someone tell me what I'm missing?

TIA,
anw
[ May 17, 2007: Message edited by: Bear Bibeault ]

-------<br />Thanks & regards,<br />anw
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61413
    
  67

Originally posted by Allen Williams:
Can someone tell me what I'm missing?
It's not what's missing.
What's with the semi-colon?
[ May 17, 2007: Message edited by: Bear Bibeault ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Allen Williams
Ranch Hand

Joined: Sep 04, 2006
Posts: 136
Uh, well, it seemed right at the time;-) That fixed it!

Thanks!
anw
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: I'll never get JSON syntax straight