Class JsonPathHandler

java.lang.Object
org.qubership.atp.environments.helper.JsonPathHandler

@Component public class JsonPathHandler extends Object
  • Constructor Details

    • JsonPathHandler

      public JsonPathHandler()
  • Method Details

    • getByJsonpath

      public String getByJsonpath(String json, String jsonpath) throws com.jayway.jsonpath.PathNotFoundException
      Gets formatted json by jsonpath.
      Parameters:
      json - - input json structure
      jsonpath - - jsonpath for getting part of input json structure
      Returns:
      string in json format
      Throws:
      com.jayway.jsonpath.PathNotFoundException - - exception during finding jsonpath in input json structure