GROOVY-6559: Fix for escape single character in the JsonOutput