Remove json functions from mongo transaction