Turning nested JSON into an HTML nested list with Javascript

后端 未结 3 1902
忘了有多久
忘了有多久 2021-02-06 13:03

I\'m fairly new to using JSON (as opposed to XML) and am currently working purely with Javascript to digest, parse and display my returned JSON data.

I\'m using the JSON

3条回答
  •  囚心锁ツ
    2021-02-06 13:35

    You can walk through your json structure by yourself and create appropriate

  • when needed, but I suggest you to implement Composite Pattern. See link for more details

提交回复
热议问题