I am trying to create a JSON string representation of a class instance and having difficulty. Let’s say the class is built like this:
value1 = “a”
value2 = “b”
A call to the json.dumps is made like this:
t = testclass()
It is failing and telling me that the testclass is not JSON serializable.