jsonpath
jsonpath copied to clipboard
how to filter by key?
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
}]
Any Idea on how to do this, or how to search by a partial key string,
something like keyName.endsWith('_someSuffix')