Add Controller::doesAcceptJson