Class JSONUtils


  • public class JSONUtils
    extends java.lang.Object
    Utils for Java serialization and deserialization.
    • Constructor Summary

      Constructors 
      Constructor Description
      JSONUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String escapeJSONString​(java.lang.String unsafeStr)
      Escape a string to be surrounded in double quotes in JSON.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JSONUtils

        public JSONUtils()
    • Method Detail

      • escapeJSONString

        public static java.lang.String escapeJSONString​(java.lang.String unsafeStr)
        Escape a string to be surrounded in double quotes in JSON.
        Parameters:
        unsafeStr - The string to escape.
        Returns:
        The escaped string.