I want to export mongodb as json, here is the entry:
{"_id":{"$oid":"554f042c0e81bf483e4a4e2f"}, "batch":"3","bz":NumberInt(1)}
Having problems when I use json to load:
json.loads('{"_id":{"$oid":"554f042c0e81bf483e4a4e2f"}, "batch":"3","bz":NumberInt(1)}')
he returns ValueError: No JSON object could be decoded. This is due to the fact that jsonit cannot deal with NumberInt(1).
So how can I translate NumberInt(1)in 1upon export?
source
share