If string value contains double quote,   JsonToStringStyle generates
invalid json string.

Here is the detail :

The code at line 2609  needs to escape the double quote before appending it
to the buffer.


https://github.com/apache/commons-lang/blob/c614fbcc79615f93d2c60a153db6e82d7474c425/src/main/java/org/apache/commons/lang3/builder/ToStringStyle.java

line 2608 and line 2609

       private void appendValueAsString(final StringBuffer buffer,
final String value) {
            buffer.append('"').append(value).append('"');
        }


Jim

Reply via email to