Share Link
Copied to clipboard
Embed on Your Page
Copied to clipboard
We Stand with Ukraine
questions/46227607/quering-json-using-selecttokens-with-newtonsoft-json-linq-in-c-sharp by dbc_MinLength
Environment version: 4.0.30319.42000
Json.NET version: Newtonsoft.Json, Version=10.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed


New JSON: 
{
  "disbursements": [
    {
      "id": "1f337641",
      "contactId": "f5eb2",
      "statusCode": 166000005,
      "amount": 8,
      "category": 166000001
    },
    {
      "id": "027a4762",
      "contactId": "f5eb2038",
      "statusCode": 166000005,
      "amount": 4000,
      "category": 166000000
    }
  ]
}

New JSON with complex value replacement: 
{
  "disbursements": [
    {
      "id": "1f337641",
      "contactId": "f5eb2",
      "statusCode": {
        "oldValue": 166000005,
        "newValue": 166000005
      },
      "amount": 8,
      "category": 166000001
    },
    {
      "id": "027a4762",
      "contactId": "f5eb2038",
      "statusCode": {
        "oldValue": 166000000,
        "newValue": 166000005
      },
      "amount": 4000,
      "category": 166000000
    }
  ]
}
Cached Result
Last Run: 11:50:57 am
Compile: 0.279s
Execute: 0.239s
Memory: 1.08Mb
CPU: 0.328s