add helper methods to json response.