json_spec icon indicating copy to clipboard operation
json_spec copied to clipboard

be_valid_json matcher?

Open chronick opened this issue 11 years ago • 1 comments

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?

chronick avatar Oct 31 '13 18:10 chronick

Totally agreed here, @headcanon.

xurde avatar Apr 15 '15 14:04 xurde