Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
192
rated 0 times [  196] [ 4]  / answers: 1 / hits: 16482  / 12 Years ago, tue, june 26, 2012, 12:00:00

I get following error (SyntaxError): missing ] after element list when using eval function.
Returned JSON is pretty simple, so I don't undestand where is error.



[{title:sfsdf,id:1}{title:m356,id:12}]

More From » eval

 Answers
20

As an answer for completeness. Your JSON is invalid. You need a comma between the Objects like so:



[{title:sfsdf,id:1},{title:m356,id:12}]

[#84645] Monday, June 25, 2012, 12 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tylerdamiena

Total Points: 139
Total Questions: 90
Total Answers: 118

Location: Liechtenstein
Member since Wed, Dec 8, 2021
3 Years ago
tylerdamiena questions
;