var arr=[{'drink':['alcohol', 'soft', 'hot']}, {'fruit':['apple', 'pear']}]; var arrj=JSON.stringify(arr);