json_spec
json_spec copied to clipboard
be_valid_json matcher?
Would a matcher simply to check if a response is valid JSON make sense to include in the gem? I don't believe it would be more complicated than asserting that parse_json does not throw an error, which is what I'm doing in my project, but the syntactical sugar would be nice to have IMO.
Or is this somehow covered by one of the other matchers?
Totally agreed here, @headcanon.