TypeError: unbound method decode() must be called with JSONDecoder instance as first argument (got PrintJson instance instead)
I am getting this error when I try to parse python object into json.
Using following code:-
I am getting this error when I try to parse python object into json.
Using following code:-
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
Comment