JSFiddle - React, Tailwind, and code Playground

by dozoisch

JavaScript

var obj = {
    "items": [{
        "solutionFactId": "09b8b96c-880e-4c8b-a98b-44392c623e68",
            "contextId": "f9e3666b-a268-4088-a089-48c2503eca6f",
            "templateId": "dc44673f-1b51-4d19-a955-17d1cd24aab8",
            "name": "HasTactic",
            "score": 0.15159420015652175,
            "arguments": [{
            "name": "Ali_Mahadi",
                "orderIndex": 1,
                "type": "ONTOLOGY",
                "ontologyInstance": true
        }, {
            "name": "BombingActivity",
                "orderIndex": 2,
                "type": "ONTOLOGY",
                "ontologyInstance": true
        }],
            "factDependency": [{
            "factOfTheCase": {
                "factId": "094EB057-7D66-42AC-9893-32B4320CA622",
                    "factDefId": "1DD721C1-3FF5-4928-BD6F-5771DC4B4DB1",
                    "arguments": [{
                    "name": "Ali_Mahd'i",
                        "orderIndex": 1,
                        "type": "ONTOLOGY",
                        "ontologyInstance": true
                }, {
                    "name": "Ali Mahd'i",
                        "orderIndex": 2,
                        "type": "TEXT",
                        "ontologyInstance": false
                }]
            },
                "factOfTheQuery": {
                "factId": "22C919B7-7C2C-4704-A110-A580F9E3148C",
                    "factDefId": "1DD721C1-3FF5-4928-BD6F-5771DC4B4DB1",
                    "arguments": [{
                    "name": "Ali_Mahadi",
                        "orderIndex": 1,
                        "type": "ONTOLOGY",
                        "ontologyInstance": true
                }, {
                    "name": "Ali Mahadi",
                        "orderIndex": 2,
                        "type": "TEXT",
                        "ontologyInstance": false
                }]
            },
                "score": 0.7,
                "name": "HasName"
        }, {
           ...