結果 : create json object in javascript using for loop