A little utility for testing if 2 json strings are equal, for use in tests.
go run main.go '{"dog": 5, "cat": 3}' '{"cat":3, "dog": 5}'
- You may want to use a matcher library (like gomega) that has a function for this, since some of the other functionality in those libraries is pretty awesome
null,true,"abc"are also valid JSON. That's whyinterface{}should be used instead ofmap[string]interface{}.