replace json by bson