collectiveidea / json_spec

Easily handle JSON in RSpec and Cucumber
rubygems.org/gems/json_spec
MIT License
917 stars 114 forks source link

be_valid_json matcher? #55

Open chronick opened 11 years ago

chronick commented 11 years ago

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?

xurde commented 9 years ago

Totally agreed here, @headcanon.