JSONAssert

JSONAssert is a library that verifies JSON objects. It’s mainly used to assert JSON payloads returned as a response from the REST APIs.

We can use it to not only verify JSON objects, but also JSON arrays.

Getting started with JSONAssert

To get started with JSONAssert, we’ll use the following Maven coordinates.

Get hands-on with 1400+ tech skills courses.