Class JsonUtilities


  • public class JsonUtilities
    extends Object
    This class has static methods that can be used to work with JSON.
    • Method Detail

      • toJson

        public static String toJson​(Document document)
                             throws JsonParseException
        Returns a String that contains a JSON representation of the given document.
        Parameters:
        document - to convert to a JSON string.
        Returns:
        the JSON string
        Throws:
        JsonParseException - if unable to convert the document to a JSON string.