I want to do a sanity-check on the response I get from a request and verify that element1 is 2017 in the below response:
body=
{
"id" : { "element1": "2017", "element2": "ST", "nivaa": "land", "navn": "element3", "nr": "0" },
How do I do that in something like this format:
.check(jsonPath("$._element").is("2017")))
The code above does not work.
What do I put in where it says "$._element"