File "I:\ZhongTongFu-DaShuJu\Project\senseware1\senseware\mongo\utility\utility.py", line 60, in convert_to_json
new_json_obj = JSONEncoder(ignore_nan=True).encode(bson_obj)
File "E:\python2.7\lib\site-packages\simplejson\encoder.py", line 291, in encode
chunks = self.iterencode(o, _one_shot=True)
File "E:\python2.7\lib\site-packages\simplejson\encoder.py", line 373, in iterencode
return _iterencode(o, 0)
File "I:\ZhongTongFu-DaShuJu\Project\senseware1\senseware\mongo\utility\utility.py", line 45, in default
return json.JSONEncoder.default(self, o)
File "E:\python2.7\lib\site-packages\simplejson\encoder.py", line 268, in default
o.__class__.__name__)
TypeError: Object of type UpdateResult is not JSON serializable
error prompts are like this
means that my does not conform to JSON format
code is like this
I found that I forgot to write ACKNOWLEDGED
Let’s add this to OK
The result of returning is the success of True representative