name: hspec-expectations-json
description: Hspec expectations for JSON Values

Comparing JSON Values in Haskell tests comes with some challenges:

In API responses, additive changes are typically safe and an important way
to evolve responses without breaking clients. Therefore, assertions against
such responses often want to ignore any unexpected keys in Objects (at any
depth), as any clients would.

Order often doesn&#39;t matter in API responses either, so it should be possible
to assert equality regardless of Array ordering (again, at any depth).

When an assertion fails, showing the difference clearly needs to take the
above into account (i.e. it can&#39;t show keys you&#39;ve ignored, or ordering
differences you didn&#39;t care about), and it has to display things clearly,
e.g. as a diff.

This library handles all these things.
license_spdx: MIT
version: 1.0.0.5
spec_version: 1.0
download_url: http://hackage.haskell.org/package/hspec-expectations-json-1.0.0.5/hspec-expectations-json-1.0.0.5.tar.gz
home_url: 
                https://github.com/freckle/hspec-expectations-json#readme
              
news_url: https://libraries.io/hackage/hspec-expectations-json/versions.atom
date: 2021-11-30
about_resource: NONE
libraries_io_url: https://libraries.io/hackage/hspec-expectations-json?number=1.0.0.5
vcs_tool: git
vcs_repository: https://github.com/freckle/hspec-expectations-json
vcs_branch: main
