Share Link
Copied to clipboard
Embed on Your Page
Copied to clipboard
We Stand with Ukraine
Question39335994 Testing for nested keys with Json.NET? by dbc_MinLength
Testing JSON: 
{ "Key1" : {"key2":"value"},  "key3" : "other values" }
Testing query: 
Key1.key2
Results of running the query: 
[
  {
    "Key1": {
      "key2": "value"
    },
    "key3": "other values"
  }
]
Testing JSON: 
{ "Key1" : [{"NoKey2":"value"}, {"key2":"value"}],  "key3" : "other values" }
Testing query: 
Key1[*].key2
Results of running the query: 
[
  {
    "Key1": [
      {
        "NoKey2": "value"
      },
      {
        "key2": "value"
      }
    ],
    "key3": "other values"
  }
]
Cached Result
Last Run: 10:41:22 pm
Compile: 0.258s
Execute: 0.168s
Memory: 1.12Mb
CPU: 0.203s