Then the JSON response should have "propertyPath" equal to "value"

Alternative syntax for JSON property verification.

Step pattern

Then (?:the JSON response should have|the API response should have|the JSON property) "([^"]*)" (?:equal to|should be) (.+)

Examples

Example #1
Then the JSON response should have "name" equal to "John Doe"
Example #2
Then the API response should have "id" equal to 1
Example #3
Then the JSON property "active" should be true
Example #4
Then the JSON response should have "org" equal to "Webship.co"
Example #5
Then the API response should have "email" equal to "hello@un.org"
Example #6
Then the JSON property "count" should be 42
Example #7
Then the JSON response should have "user.role" equal to "admin"
Example #8
Then the JSON property "published" should be false