I'm facing an issue with my ng-repeat loop where I iterate through a JSON and display it in a table. The problem is that when I try to iterate through a nested JSON value, it's treating it as a string.
<tr
ng-repeat="(key,value) in event.kibana._source track by $index"
ng-class-odd="'odd'">
<td>{{key}}</td>
<td>
<span>{{value}}</span>
<span ng-repeat="(k,val) in value track by $index">{{k}}|{{val}} </span>
</td>
</tr>
The issue arises because the "value" is considered to be a JSON but displays as a string within the td element:
{"bezeichnung":"Basis","name":"Basis","id":16} 0|{ 1|" 2|b 3|e 4|z 5|e 6|i 7|c 8|h 9|n 10|g 11|" 12|: 13|" 14|B 15|a 16|s 17|i 18|s 19|" 20|, 21|" 22|n 23|a 24|m 25|e 26|" 27|: 28|" 29|B 30|a 31|s 32|i 33|s 34|" 35|, 36|" 37|i 38|d 39|" 40|: 41|1 42|6 43|}
What I actually want is to properly iterate through the nested JSON instead of treating it as a string. Any suggestions on how to achieve this?
EDIT:
This is the structure of the JSON:
{
"fold":11,
"id":64894760,
"entities":[{"bezeichnung":"Basis","name":"Basis","id":16}]
}