Changed dumps format from bson to json