title: TypeError: unbound method decode() must be called with JSONDecoder instance as first argument (got PrintJson instance instead)
body: <blockquote>
    <p>TypeError: unbound method decode() must be called with JSONDecoder instance as first argument (got PrintJson instance instead)</p>
  </blockquote>
  
  <p>I am getting this error when I try to parse python object into json.</p>
  
  <p>Using following code:</p>
  
  <pre><code>import json
  from json import JSONDecoder
  
  class TestJson():
      name = None
      pass
  
  printJson = PrintJson()
  print printJson
  print JSONDecoder.decode(printJson) // at this line, getting this error
  </code></pre>