I have a JSON that has three levels and it's stored as Array I need to get 2nd level(count started from 0) and below in each level has 10+ elements. How it can be implemented on JavaScript.Need your help. All response will be helpful.
ps. some 1st level and 2nd level elements can be empty
[
  {
    "name": "0th level first", //0th level
    "options": [
      {
        "name": "1st level Cafe", // 1st level
        "options": [
          {
            "name": "2nd level Staff", //2nd level
            "options": [
              {
                "name": "Gary", //3rd level
                "age": 18
              },
              {
                "name": "James", //3rd level
                "age": 25
              }
            ]
          }
        ]
      }
    ]
  }
]
 
     
     
    