How to get data in jsonformat using jquery .I want to get this type data
var myCustom={ 'item':[{'id':123,'quantity':1},{'id':134,'quantity':2}]};
Please send me any solution with any example in button click.