Provide MatchJSON function. As the name indicates it will accept either string or []byte, check if it's a valid JSON and save it in a pretty format for more readability.
~It will also provide support for some utility matchers on fields ( similar to what jest does expect.any but with more variety ). It should also give you the ability to provide your own custom matchers.~
~Right now there is only some testing with Ignore.~
[ ] more examples
[ ] ~better error messages of matcher errors~
[x] Validate JSON
[x] ~list of utility matchers~
[x] ~support for user providing his own matchers~
[x] Documentation
This pr got too big, will break it to more prs as functionalities can be splitted.
Provide
MatchJSON
function. As the name indicates it will accept eitherstring
or[]byte
, check if it's a valid JSON and save it in a pretty format for more readability.~It will also provide support for some utility matchers on fields ( similar to what jest does
expect.any
but with more variety ). It should also give you the ability to provide your own custom matchers.~~Right now there is only some testing with
Ignore
.~This pr got too big, will break it to more prs as functionalities can be splitted.