title: python check if json.dumps is possible
body: <p>is it possible to check if a value is able to be "json.dumps"d 
  like <code>json.dumping.possible(code)</code> with a boolean output?
  I would be thankful for help</p>