Class JsonUtil


  • public class JsonUtil
    extends java.lang.Object
    JSON utilities.
    • Constructor Summary

      Constructors 
      Constructor Description
      JsonUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getJsonString​(java.lang.String str)
      Generate a valid JSON string from the given str.
      • Methods inherited from class java.lang.Object

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

      • JsonUtil

        public JsonUtil()
    • Method Detail

      • getJsonString

        public static java.lang.String getJsonString​(java.lang.String str)
        Generate a valid JSON string from the given str.
        Parameters:
        str - A String
        Returns:
        JSON string surrounded by double quotes.
        See Also:
        RFC 4627