I’m using the dependency: I have the following objects: And I need to log the content of the class X recursively to get the class Y as well and using the JSON style. That is my goal and this is the purpose of this question. Approach 1: Approach 1 result: Approach 2: Approach 2 result: Successful Approach: Successful Approach result
Tag: apache-commons-lang
Alternative to using StringEscapeUtils.escapeJavaScript() in commons lang3
I’ve been tasked with updating our code from using org.apache.commons.lang to org.apache.commons.lang3 and I’ve found that the newer version of StringEscapeUtils no longer has the method escapeJavaScript() however we were using this in quite a few places throughout our code. I’ve been reading through the documentation and it seems that the whole of StringEscapeUtils was rewritten for lang3 (see release