Example json is
{
"model": {
"sub-model": {
"/example/1":"alaska",
"value": "Consistently"
}
}
}
I tried to fetch the value of the key -"/example/1" with the below code and I am getting java.lang.IllegalArgumentException: The parameter "1" was used but not defined. Define parameters using the JsonPath.params(...) function
String keyVal=given()
.when()
.get(url)
.then().extract().path("model.cache.sub-model./example/1");