github.com/kinbiko/jsonassert (go): Package jsonassert is a Go test assertion library for verifying that two representations of JSON are semantically equal. Create a new  in your test and use this to make assertions against your JSON payloads:  E.g. for the JSON  you may use an expected JSON of  along with the "world" format argument. For example:  You may wish to make assertions against the *presence* of a value, but not against its value. For example:  will verify that the UUID field is present, but does not check its actual value. You may use "<<PRESENCE>>" against any type of value. The only exception is null, which will result in an assertion failure.  If you don't know / care about the order of the elements in an array in your payload, you can ignore the ordering:  The above will verify that "foo", "bar", and "baz" are exactly the elements in the payload, but will ignore the order in which they appear.
Keywords: assertion-library|assertions|go|golang|hacktoberfest|json|json-payload|testing