Jquery 1.9.1
var BODY = { "recipients": { "values": [] }, "subject": 'TitleOfSubject', "body": 'This is the message body.' } var values = [], names = ['sheikh', 'muhammed', 'Answer', 'Uddin', 'Heera']; for (var ln = 0; ln < names.length; ln++) { var item1 = { "person": { "_path": "/people/"+names[ln] } }; values.push(item1); } var strJson=JSON.stringify(values); alert("this is str:"+strJson); var jsonObj = jQuery.parseJSON( strJson); alert( jsonObj[0].person._path); $.extend(BODY.recipients.values, values); console.log(BODY);