jsonpath icon indicating copy to clipboard operation
jsonpath copied to clipboard

how to filter by key?

Open vc1 opened this issue 8 years ago • 1 comments

let data = {
  "2010": {
    "shape": {
      "x": 10,
      "y": 11
    },
    "weight": 10
  },
  "2011": {
    "shape": {
      "x": 111,
      "y": 111
    },
    "weight": 111
  },
  "2012": {
    "shape": {
      "x": 222,
      "y": 222
    },
    "weight": 222
  }

//  2013 ...

}

select key >= 2011

return shape value

[{
    "x": 111,
    "y": 111
  },
  {
    "x": 222,
    "y": 222
}]

vc1 avatar Dec 04 '17 06:12 vc1

Any Idea on how to do this, or how to search by a partial key string,

something like keyName.endsWith('_someSuffix')

DelfsEngineering avatar Mar 14 '18 16:03 DelfsEngineering