quote:
Originally posted by Leroux
- Out of interest, why are the extra brackets added? Just so I fully understand the code I use.
They are needed because otherwise it won't parse the object correctly.
Taken from
JSON.org:
quote:
The text must be wrapped in parens to avoid tripping on an ambiguity in JavaScript's syntax.