Returning name of resource in JSON from Request handler