Jump to content

JSON: Difference between revisions

22 bytes added ,  10 years ago
add julia entry
(Undo revision 170305 by Common-dude (talk))
(add julia entry)
Line 1,077:
However, there is an ambiguity with parsing JavaScript object literals by themselves, where it might be mistakenly interpreted as a block, and the key followed by a colon as a label. To avoid this, remember to surround it in parentheses to force it to be interpreted as an expression:
<lang javascript>var data = eval('(' + '{ "foo": 1, "bar": [10, "apples"] }' + ')');</lang>
 
=={{header|Julia}}==
 
=={{header|Lasso}}==
Cookies help us deliver our services. By using our services, you agree to our use of cookies.