0

I am trying to read the complex nested JSON array which looks like below :

MyApp1:
  MyApp2:
      MyApp3:
         MyApp4:
            MyApp5:Array(2)
               {Tag: "UI", Technology: "Angular"}
               {Tag: "Backend", Technology: "Spring Boot"}

I am trying to store nested array values

 {Tag: "UI", Technology: "Angular"}
 {Tag: "Backend", Technology: "Spring Boot"}

to mytechnologyArray: any [],

so that I can write ngfor in an HTML page and display those values

James Z
  • 12,209
  • 10
  • 24
  • 44
Mahesh
  • 133
  • 1
  • 3
  • 16
  • Possible duplicate of [How can I access and process nested objects, arrays or JSON?](https://stackoverflow.com/questions/11922383/how-can-i-access-and-process-nested-objects-arrays-or-json) – Heretic Monkey Jun 06 '19 at 17:48

1 Answers1

0

let mytechnologyArray = myApp1.myApp2.myApp3.myApp4

after in html

*ngFor=" let element of mytechnologyArray.myApp5" and then use element.Tag or element.Technology to retrive the value

Patrizio
  • 16
  • 2