0

I have a JSON object.

[
  {
    "label": "Lauren Boyle",
    "name": "Lauren Boyle",
    "expanded": true,
    "items": [
      {
        "label": "Banoth Srikanth",
        "name": "Banoth Srikanth",
        "expanded": true,
        "items": [
          {
            "label": "Stella Pavlova",
            "name": "Stella Pavlova",
            "expanded": true,
            "items": []
          }
        ]
      },
      {
        "label": "Srikanth",
        "name": "Srikanth",
        "expanded": true,
        "items": []
      }
    ]
  }
]

I need to display this as a tree without using lightning-tree. How can I display this tree? I have tried multiple ways, but I am getting nowhere.

InSync
  • 4,851
  • 4
  • 8
  • 30

1 Answers1

0

If you want to show json data as a collapsible tree , i would suggest you to use JavaScript libraries. Here's list of some libraries to do that.

rootShiv
  • 1,375
  • 2
  • 6
  • 21