Deprecated.Since v6.4 use ObjectMapper.writeValueAsString(java.lang.Object)
instead and properly escape output.
Util for transforming objects of any type (including arrays, standard primitive wrapper types, beans) into a
valid JSON string, which can be directly embedded in <script> section in HTML page. Because parsing of
<script> is immediately terminated by web browsers when </ sequence is found (usually </script>
marks the end of script section, but browsers are lazy) this method also escapes each "</" into "<\/"
o - object to convert to JSON string, for null you will get "null" string (without qutoes)