Roan comments:
Line 508-513 (concatenate separated strings): this doesn't account for single quotes
Why don't you just use real JSON here instead of fragile hacks?
I assume one reason would be formatting, but there should be code snippets which do that too.
Version: unspecified
Severity: normal