The recursive method using JavaScript over a JSON array is returning doubled text and not looping over the whole nested arrays

前端 未结 0 1241
醉话见心
醉话见心 2021-02-05 13:52

I need to loop over a JSON array without knowing the depth of each object or nested object.

Here is my json array:

var data = {
    "name": "         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题