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
But there is no way to conditionally return the target root (or an empty result/node list) using a filter selector. This is a known limitation in the IETF JSONPath Base. See ietf-wg-jsonpath/draft-ietf-jsonpath-base#390.
One solution is to add an additional root identifier. A root Identifier that is functionally equivalent to wrapping the target JSON value in a single-element array. I suggest the circumflex (U+005E ^ aka caret) character for this purpose. I've been calling this the "fake root identifier".
Activity
jg-rp commentedon Feb 23, 2024
Closed by #51.