SyntaxFix
Write A Post
Hire A Developer
Questions
You have to write round brackets, because without them eval will consider code inside curly brackets as block of commands.
eval
var i = eval("({ hello: 'world', places: ['Africa', 'America', 'Asia', 'Australia'] })");