Sangeetha S

Sangeetha S

  • 378
  • 4.3k
  • 267.4k

How to query this nested JSON using C# ?

Dec 10 2024 10:20 AM

Hi,

How to query this nested json ?

[{
  "_id": {
    "$oid": "65af63b9b90f28b3176dbae8"
  },
  "Company Name": "ABCD",
  "Location": "Mysore",
  "NoOfEmployee": "300",
  "fixlevel": 10,
  "create": "1",  
  "prod1": [
    {
      "wre": {
        "id": "wre",
        "name": "wrt", 
        "address": "345 435435vr",
        "pincode": "535345"
      }
    },
    {
      "1q": {
        "id": "1q",
        "name": "re 
        "address": "ewrwer",
        "pincode": "213414"
      }
    }
  ],
  "prod2": [
    {
      "22": {
        "id": "22",
        "name": "423", 
        "address": "erw",
        "pincode": "324234",
        "linkstring": "prod1.wre",
        "linkvalue": "wre"
      }
    },
      "223": {
        "id": "223",
        "name": "sdfsdf",
        "meterid": "erwer",
        "address": "fgsdgf",
        "pincode": "321114",
        "linkstring": "prod1.1q",
        "linkvalue": "1q"
      }
  ]
  }]


Answers (4)