Class JsonUtil


  • public class JsonUtil
    extends Object
    JSON utilities.
    • Constructor Detail

      • JsonUtil

        public JsonUtil()
    • Method Detail

      • getJsonString

        public static String getJsonString​(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