Class JSONStringUtils


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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String toJSONString​(java.lang.String string)
      Serialises the specified string to a JSON string.
      • Methods inherited from class java.lang.Object

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

      • toJSONString

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