Right now bodies are compared verbatim, so different JSON key ordering and spacing will count as a mismatch. At minimum, could add JSON parsing in JSON mode.
Could also use something like github.com/nsf/jsondiff to do smarter JSON comparisons, support allowing JSON subsets instead of counting it as a mismatch.
Right now bodies are compared verbatim, so different JSON key ordering and spacing will count as a mismatch. At minimum, could add JSON parsing in JSON mode.
Could also use something like github.com/nsf/jsondiff to do smarter JSON comparisons, support allowing JSON subsets instead of counting it as a mismatch.