Class JsonUtils
java.lang.Object
org.apache.sling.testing.clients.util.JsonUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.fasterxml.jackson.databind.JsonNodegetJsonNodeFromString(String jsonString) GetJsonNodefrom a a String containing JSON.
-
Constructor Details
-
JsonUtils
public JsonUtils()
-
-
Method Details
-
getJsonNodeFromString
public static com.fasterxml.jackson.databind.JsonNode getJsonNodeFromString(String jsonString) throws TestingIOException GetJsonNodefrom a a String containing JSON.- Parameters:
jsonString- A string containing JSON- Returns:
- A
JsonNodethat is the root node of the JSON structure. - Throws:
TestingIOException- if error occurs while reading json string
-