How do I check if a string is JSON with python?
<p>When doing api calls is there a way to check if a string is json before trying to parse it? For example working with things like the Facebook Graph api, sometimes it returns json, sometimes it could return an image file.</p>
