I am trying to loop through the following:
{ \"messages\": [{ \"msgFrom\": \"13223821242\", \"msgBody\": \"Hi there\" }, { \"
You can use forEach method to iterate over array of objects.
data.messages.forEach(function(message){ console.log(message) });
Refer: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach