iteration ein json Objekt auf Ngfor in Winkel 2
Ich habe Probleme mit der Iteration eines JSON-Objekts in der NGFOR. Es gibt meine Vorlage:
Vorlage
<h1>Hey</h1>
<div>{{ people| json}}</div>
<h1>***************************</h1>
<ul>
<li *ngFor="#person of people">
{{
person.label
}}
</li>
</ul>
people ist das json-Objekt, das ich durchlaufen möchte. Ich habe das Ergebnis von (people | json) und erhalte die Liste nicht. Hier ist ein Screenshot:
und zum Abschluss hier ein Teil der JSON-Datei:
{
"actionList": {
"count": 35,
"list": [
{
"Action": {
"label": "A1",
"HTTPMethod": "POST",
"actionType": "indexation",
"status": "active",
"description": "Ajout d'une transcription dans le lac de données",
"resourcePattern": "transcriptions/",
"parameters": [
{
"Parameter": {
"label": "",
"description": "Flux JSON à indexer",
"identifier": "2",
"parameterType": "body",
"dataType": "json",
"requestType": "Action",
"processParameter": {
"label": "",
"description": "Flux JSON à indexer",
"identifier": "4",
"parameterType": "body",
"dataType": "json",
"requestType": "Process"
}
}
},
Bitte zögern Sie nicht, mir zu helfen