Adds extra attributes to the json response