{"contacts": {"xxx-xxx-xxxx": "Joe", "yyy-yyy-yyyy": "Joe", "zzz-zzz-zzzz": "Ane", "aaa-aaa-aaaa": "Rod"}, "apps": ["facebook", "linkedin", "twitter"]}
Traceback [most recent call last]:
File "jsonex1.py", line 51, in
jsonString1 = MobilePhoneEncoder[].encode[Class_No_JSONSerialization[]]
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/json/encoder.py", line 199, in encode
chunks = self.iterencode[o, _one_shot=True]
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/json/encoder.py", line 257, in iterencode
return _iterencode[o, 0]
File "jsonex1.py", line 32, in default
return json.JSONEncoder.default[self, object]
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/json/encoder.py", line 180, in default
o.__class__.__name__]
TypeError: Object of type 'Class_No_JSONSerialization' is not JSON serializable