applicationStub_parameter = {}; function applicationStub_list() { $('#content').html(''); $('#result').html(''); $.ajax({ type : 'get', dataType : 'json', url : '../jaxrs/applicationstub/list', xhrFields : { 'withCredentials' : true }, crossDomain : true }).always(function(json) { $('#result').html(JSON.stringify(json, null, 4)); }); }