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
@litao09h@liveFreeOrCode
As far as I know it's not possible to do it for the generic case of arbitrary depths.
But if you know in advance the possible depths where the field is present though then it becomes doable with a bit of a verbose query. For example for the specific case above with depth 1 and 2 a query of the form:
The [] around is a multipaths to create a new object, and the @flatten is needed to remove all the empty lists for the part of the query for depth two.
Example:
example in jsonPath:
express: $..text
output: ["m1","n2"]
The text was updated successfully, but these errors were encountered: