I find JSonArray automatically escape double quote as it is used in JSON separator. But single quote does not escape. This fits most scenarios but annoy in some cases.
For example, in JSP code, JSON string may be embedded as string in javascipt directly, ie,
function test(){
var jsonStr = '${jsonVariable}';
...
}
${jsonVariable} is JSTL output. The trouble is, that javascript variable is illegual whatever it is enclosed by double or single quote if the JSON string include single quote. For example [{"abc":"single ' quote"}], here double/single both occpied...
So, it is good if JSONConfig has an option to allow users to escape both single and double quote...