0
votes

When I send a HTTP request I want a specific JSON response. I tried doing this, but with no luck.

This is what I have.

This is what I receive.

1

1 Answers

0
votes

$. is not a valid JsonPath expression, if you want everything - you can go for "deep scan" and "wildcard" operators like:

$..*

be aware that JSON Path doesn't return attributes names so you will be able to assert only values so you might need to reconsider your pattern.

Looking into "what you have" I would recommend using Response Assertion instead.