function Submit(payload) {
let arry = [];
for (let x = 0; x < payload.Idetails.length; x++) {
.success(data)
{
arry.push(data);
}
}
console.log(JSON.stringify(arry));
}
data would be json
{"type":"success","key","123","Id":"1234"}
I want to save list of json
{"type":"success","key","a12","Id":"1234"}
{"type":"success","key","ab3","Id":"1245"}
{"type":"success","key","d11","Id":"1256"}
{"type":"success","key","eff","Id":"12378"}
What I have tried:
on success return am just saving json return data in
resultArry.push(data)
but its not working.
Need help on this.