Add respond_to block to json response