Get JSON from AJAX.