Serialization test of Zepto's $.param function (using jQuery)
HTML
<pre id="console"></pre>
JavaScript
var params = {
pStr : 'hoge',
pAry : [ 1, 2, 3 ],
pAryObj: [ { a: 'bc', d: 'ef' }, { a: 'gh' } ]
};
echo(params);
function echo(obj) {
var serialized = decodeURIComponent($.param(obj).replace(/&/g, '&\n'));
$('#console').html(serialized);
}