1

I have a data like below .I want to read the each devicename . How should I read ?

{
  "took": 1,
  "timed_out": false,
  "_shards": {
    "total": 5,
    "successful": 5,
    "failed": 0
  },
  "hits": {
    "total": 3,
    "max_score": 1,
    "hits": [
      {
        "_index": "devupdate",
        "_type": "driver",
        "_id": "2",
        "_score": 1,
        "_source": {
          "devicename": "UMBus Enumerator2",
          "driverversion": "6.1.7601.17514",
          "status": "",
          "InstallDate": "",
          "InfName": "umbus.inf"
        }
      },
      {
        "_index": "devupdate",
        "_type": "driver",
        "_id": "1",
        "_score": 1,
        "_source": {
          "devicename": "UMBus Enumerator",
          "driverversion": "6.1.7601.17514",
          "status": "",
          "InstallDate": "",
          "InfName": "umbus.inf"
        }
      },
      {
        "_index": "devupdate",
        "_type": "driver",
        "_id": "3",
        "_score": 1,
        "_source": {
          "devicename": "UMBus Enumerator3",
          "driverversion": "6.1.7601.17514",
          "status": "",
          "InstallDate": "",
          "InfName": "umbus.inf"
        }
      }
    ]
  }
}
Master Po
  • 1,497
  • 1
  • 23
  • 42

0 Answers0