var data = new FormData(); data.append('name', 'Bob'); function sendData() { $.ajax({ url: '/helloworld', type: 'POST', contentType: false, data: data, dataType: 'json' }); }