如何将嵌套的json呈现到datatable列中

时间:2019-04-16 09:41:01

标签: jquery datatables

我是datatable的新手,我试图将json中的数据动态显示到Datatable。

下面是嵌套的json。

{
  Solution: "MobileBroadband",
  Operator: "MTN"
  
  VNF: [
    {
      "vendor": "vendor1",
      "name": "product1",
      "release": "1.0"
    },
    {
      "vendor": "vendor3",
      "name": "prodc3",
      "release": "3.0"
    },
    {
     
      "vendor": "saef",
      "name": "vEPG",
      "release": "2.4"
    }
  ]
 },
{
  Solution: "CLoud",
  Operator: "Airtel"`enter code here`
  
  VNF: [
    {
      "vendor": "vendor1",
      "name": "product1",
      "release": "1.0"
    },
    {
      "vendor": "vendor3",
      "name": "prodc3",
      "release": "3.0"
    }    
  ]
 },

我期望输出是这样的。

预期结果enter image description here

0 个答案:

没有答案