Check that we have expected JSON response before trying to use it. Closes #31