JSONassert

Introduction

Write JSON unit tests in less code. Great for testing REST interfaces.

Code JSON tests as if you are comparing a string. Under the covers, JSONassert converts your string into a JSON object and compares the logical structure and data with the actual JSON. When strict is set to false (recommended), it forgives reordering data and extending results (as long as all the expected elements are there), making tests less brittle.

... which tells you that the pets array under the friend where id=3 was supposed to contain "bird", but had "cat" instead.
(Maybe the cat ate the bird?)

Contact

This is open source so if you want to help out whether by submitting code, design, suggestions, feedback,
or feature requests, we appreciate whatever you can contribute. Contact us at
jsonassert-dev@skyscreamer.org with questions or ideas.