GROOVY-6559: Fix for escape single character in the JsonOutput
Merge pull request #319 from bura/fix-json-output-escape-char

GROOVY-6559: Fix for escape single character in the JsonOutput
GROOVY-6541: getAt method not found if inferred type is Integer and getAt() accepts a primitive int