To pass this as the correct JSON, the end result you are looking for is:
{ selectedValues: ['1', '2', '4'] }
However, you serialize it, the first step is to output the selected values as an array. jQuery.val () makes this easier than you expected:
var selectedValues = $('#lbItems').val()
"", JSON :
var json = '{ selectedValues: [' selectedValues.join(',') '] }';
.NET JSON, array/collection selectedValues ( ), , . / int string, .NET .
, JSON.stringify() JSON , . , json2.js ( -, , , , ).