npm install nested-json-to-table --save 引入 const{ jsonToHTML } =require('nested-json-to-table')constdata = [ {a:1,b: {c:2,d:3} }, {a:4,b: {c:5,d:6} } ]consthtml = jsonToHTML(data)console.log(html) 显示效果 点击查看生成的源码 <table><thead><tr><throwSpan="2">a<...
There are numerous questions/answers about extracting nested JSON data, but none of those answers seem to apply to what I am attempting to do. Given the following JSON data as indexed by Splunk: { "disks": { "nvme0n1": { "model": "PC401 NVMe SK hynix 512GB", "serial": "123", ...