I am receiving complex JSON object from server side. I have no idea how to loop through such an object. Here's the object.
"message": {
"name": ["Name cannot be blank."],
"contact_person": ["Contact Person cannot be blank."],
"username": ["Username cannot be blank."]
},
I am using angularjs and using ng-repeat to iterate through.
<div style="color: red;" ng-repeat="err in message">{{err}}</div>
where message is. $scope.message=justdata.message
and this is what I get:

How can I format it in proper way. Please help me out!
<div style="color: red;" ng-repeat="(key, value) in message">{{value[0]}}</div>