Gemfire JavaDocs_test
Package org.apache.geode.json
Class JsonUtilities
- java.lang.Object
-
- org.apache.geode.json.JsonUtilities
-
public class JsonUtilities extends java.lang.Object
This class has static methods that can be used to work with JSON.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
toJson(Document document)
Returns a String that contains a JSON representation of the given document.
-
-
-
Method Detail
-
toJson
public static java.lang.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.
-
-