You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, the issue here is that once you are in the projection you can't get back to the parent level of the data. So the ?name == name conditional clause isn't going to do what you think it should do.
I don't know how you can acheive this with standard JMESPath, but with my fork I've added a decorate function so that you can add your own functions to JMESPath's internal function table. Here is a working example using your testData above that uses the groupBy function from lodash:
How JMESPath group by and summary data
input data :
expected result :
what I've tried & thought :
It tried to below code but it not work and return
Script error.
messageDemo - JSFiddle - Code Playground
PS : my env is ubuntu and support bash
The text was updated successfully, but these errors were encountered: