I\'m doing the following:
var data = $(form).serializeArray(); // Now I want to add another value on this data data.username = \'this is username\';
try
data[data.length] = { name: "username", value: "The Username" };