Loop on array of objects |
Hi, I have a question, I'm building a bot that have to call a rest service made by me, the service response is a List of json objects but at the moment I can get only the first element of the array eg. array[0].Name ecc... My ask is: how can I loop the array to have the following formatted data ? Name: Pluto Surname: Paperino ecc... this is my method: function getpersons() { //var person = result[0].Name + " " + result[0].Surname; Thanks |
|
|
|
|