This seems a bit restrictive, especially when we're expecting JSON data