Jack, JSON uses square brackets for the start and end of JSON arrays
(which are like lists in other languages).
Using these square brackets inside JSON strings won't be a problem.
The only characters you have to worry about using inside a string are
" and \, these must be escaped. I would guess that this escaping is
handled automatically by Gson but I haven't tried it personally.
You can read about the JSON spec here, its pleasingly simple: http://json.org/
CEO, Uprizer Labs
Ph: +1 512 422 3588
Fax: +1 512 276 6674
I agree, correct behavior should be to escape strings per the JSON
spec while serializing to JSON, and de-escaping (?) them when
converting back to Java strings.
John, you should file a bug report for this.