Description
Double quotes (") should be escaped in JSON.
JsonOutput does not perform this escaping for map keys:
assert groovy.json.JsonOutput.toJson(['the "quoted" key':'bug']) == /{"the \"quoted\" key":"bug"}/ | | {"the "quoted" key":"bug"} false
Attachments
Issue Links
- duplicates
-
GROOVY-7008 JsonOutput / Groovy JSON Builder do not escape special characters in map keys
-
- Closed
-