title: How do I check if a string is valid JSON in Python?
body: <p>In Python, is there a way to check if a string is valid JSON before trying to parse it?  </p>
  
  <p>For example working with things like the Facebook Graph API, sometimes it returns JSON, sometimes it could return an image file.</p>