The pain of JSON API testing
jeffkreeftmeijer.com
jeffkreeftmeijer.com
They're actually really simple to test because the returned data is in a machine-readable format - JSON. Simply parse the JSON into a data structure that your language understands (hash, array?), and make assertions about the content. The end.