Changed to except JSON from AJAX request.