Update paste to use res.json() instead of json module