Class JSONStringUtils


  • public class JSONStringUtils
    extends Object
    JSON string helper methods.
    Version:
    2022-08-16
    Author:
    Vladimir Dzhuvinov
    • Method Detail

      • toJSONString

        public static String toJSONString​(String string)
        Serialises the specified string to a JSON string.
        Parameters:
        string - The string. Must not be null.
        Returns:
        The string as JSON string.