public class JsonUtilities extends Object
Modifier and Type | Method and Description |
---|---|
static String |
toJson(Document document)
Returns a String that contains a JSON representation of the given document.
|
public static String toJson(Document document) throws JsonParseException
document
- to convert to a JSON string.JsonParseException
- if unable to convert the document to a JSON string.