I\'m doing the following:
var data = $(form).serializeArray(); // Now I want to add another value on this data data.username = \'this is username\';
var data = $(form).serializeArray(); data.push({name: 'username', value: 'this is username'});
see also: jQuery post() with serialize and extra data