Class JsonUtils
- java.lang.Object
-
- org.apache.sling.testing.clients.util.JsonUtils
-
public class JsonUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description JsonUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.codehaus.jackson.JsonNodegetJsonNodeFromString(java.lang.String jsonString)GetJsonNodefrom a a String containing JSON.
-
-
-
Method Detail
-
getJsonNodeFromString
public static org.codehaus.jackson.JsonNode getJsonNodeFromString(java.lang.String jsonString) throws ClientExceptionGetJsonNodefrom a a String containing JSON.- Parameters:
jsonString- A string containing JSON- Returns:
- A
JsonNodethat is the root node of the JSON structure. - Throws:
ClientException- if error occurs while reading json string
-
-