I am having a problem when using json2html https://github.com/eisenbraun/columns library . Is it possible to use this js library with Json object as below.
var jsonobj = [{
"id": "31",
"Mesial": {
"disorder": "",
"other": ""
},
"Facial": {
"disorder": "DC-HP",
"other": ""
},
"Distal": {
"disorder": "",
"other": ""
},
"Lingual": {
"disorder": "",
"other": ""
},
"Occlusal": {
"disorder": "",
"other": ""
}
}, {
"id": "37",
"Mesial": {
"disorder": "",
"other": ""
},
"Facial": {
"disorder": "RE-AR",
"other": ""
},
"Distal": {
"disorder": "",
"other": ""
},
"Lingual": {
"disorder": "",
"other": ""
},
"Occlusal": {
"disorder": "",
"other": ""
}
}]
I have used online tool Convert JSON to HTML Table, but unfortunately it's library is not available.
expected table output is

Array#map()to map it to the needed structure