Разбор JSON в SQL с использованием OpenJSON - PullRequest
0 голосов
/ 07 сентября 2018

Я совершенно новичок в разборе объекта JSON с OpenJson. У меня следующий файл Json

{

  "item": [
    {
      "Identifier": "1",
      "itemAttribute": [
        {
          "name": "NAME",
          "value": "John",
          "attributeList": null
        },
        {
          "name": "creation_ts",
          "value": "2018-03-14 15:39:12 -0500",
          "attributeList": null
        },
        {
          "name": "short_desc",
          "value": "description value",
          "attributeList": null
        },
         {
          "name": "status",
          "value": "OPEN",
          "attributeList": null
        },
        {
          "name": "manufacturer",
          "value": "",
          "attributeList": null

         }

      ]
      },
     {
      "Identifier": "2",
      "itemAttribute": [
        {
          "name": "NAME",
          "value": "Kim",
          "attributeList": null
        },
        {
          "name": "creation_ts",
          "value": "2017-04-30 15:39:12 -0500",
          "attributeList": null
        },
        {
          "name": "short_desc",
          "value": "descriptiontext",
          "attributeList": null
        },
         {
          "name": "status",
          "value": "OPEN",
          "attributeList": null
        },
        {
          "name": "manufacturer",
          "value": "GE",
          "attributeList": null

         }

      ]
       }

Ожидаемый результат

Identifier  Name    creation_ts       short_desc           status   

1          John 3/14/2018 15:39   description value     Open  

2          Kim  4/30/2017 15:39  descriptiontext        Open     

Любая помощь приветствуется.

Спасибо

...