To convert you should run a regex find/replace.
Pattern:
[a-zA-Z]+\(([^\)]+)\)
Replace with:
$1
This scans through the BSON and replaces all the ISODate()
, ObjectId()
, NumberLong()
, and other object references into plain strings or numbers containing whatever was inside the parentheses.