JSON

JSON creation using javascript

by santhucool007

JavaScript

jsonObj = [];
    
    for(var i=0;i<10;i++){
        item = {}
        item ["title"] = i;
        item ["email"] = i+1;

        jsonObj.push(item);
  
}
 alert(jsonObj);