Class JSON


  • public final class JSON
    extends Object
    JSON serialisation. Serialises null values.
    • Constructor Detail

      • JSON

        public JSON()
    • Method Detail

      • toJSON

        public static String toJSON​(Object obj)
        Serialises the specified object to a JSON string. Unicode characters are not escaped.
        Parameters:
        obj - The object.
        Returns:
        The JSON string.