Title: Support fallback syntax · Issue #241 · JSONPath-Plus/JSONPath · GitHub
Open Graph Title: Support fallback syntax · Issue #241 · JSONPath-Plus/JSONPath
X Title: Support fallback syntax · Issue #241 · JSONPath-Plus/JSONPath
Description: Motivation allow for the option to fallback to other parts of the json being queried if queried option undefined. Current behavior This is currently not supported. Desired behavior jq supports this through the following syntax query1 // ...
Open Graph Description: Motivation allow for the option to fallback to other parts of the json being queried if queried option undefined. Current behavior This is currently not supported. Desired behavior jq supports this...
X Description: Motivation allow for the option to fallback to other parts of the json being queried if queried option undefined. Current behavior This is currently not supported. Desired behavior jq supports this...
Opengraph URL: https://github.com/JSONPath-Plus/JSONPath/issues/241
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support fallback syntax","articleBody":"\u003c!--\nNOTE: THIS PROJECT IS NOT BEING ACTIVELY MAINTAINED.\n\nYou can file a suggestion in case someone decides to work on it.\n\nHowever, any proposed syntax changes will most likely be required to\nfirst go through standardization for consistency with other jsonpath\nimplementatioins.\n\nSee https://github.com/JSONPath-Plus/JSONPath/issues/124 .\n--\u003e\n\n## Motivation\n\n\u003c!-- What would be the purpose of this new feature? --\u003e\n\nallow for the option to fallback to other parts of the json being queried if queried option undefined.\n\n## Current behavior\n\n\u003c!-- If this is to enhance an existing rule, how does the rule\n currently behave in regard to the new changes? --\u003e\n\nThis is currently not supported.\n\n## Desired behavior\n\n\u003c!-- What would you like to see happen instead? --\u003e\n\njq supports this through the following syntax `query1 // query2 // query3 etc...` We could implement a similar syntax potentially preferring `||` as the operator.\n\n","author":{"url":"https://github.com/bit-tyler","@type":"Person","name":"bit-tyler"},"datePublished":"2025-09-01T23:37:33.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/241/JSONPath/issues/241"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:80570b39-330d-c01b-29f1-9c8d2a485774 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AAE8:28003F:8355E5:BA0EB0:696FB058 |
| html-safe-nonce | 02be7ebddfdddffa5bdca3d57ddf9ed348e914f7556fb1e8e8861d8cc4f8961a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQUU4OjI4MDAzRjo4MzU1RTU6QkEwRUIwOjY5NkZCMDU4IiwidmlzaXRvcl9pZCI6IjgxNzk4OTg4NzYzODMxNzg4NDAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 55988c308b7c4e3baefc20dc7ff82b63f62c9d8835354bbe10e6ad15de90540a |
| hovercard-subject-tag | issue:3373953817 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/JSONPath-Plus/JSONPath/241/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fb9a7c1996cb9d077467fe80561a9fd001658697586879704fafe57ade1d0a1f/JSONPath-Plus/JSONPath/issues/241 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fb9a7c1996cb9d077467fe80561a9fd001658697586879704fafe57ade1d0a1f/JSONPath-Plus/JSONPath/issues/241 |
| og:image:alt | Motivation allow for the option to fallback to other parts of the json being queried if queried option undefined. Current behavior This is currently not supported. Desired behavior jq supports this... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bit-tyler |
| hostname | github.com |
| expected-hostname | github.com |
| None | 356c704aafcc9a6179b2bc62a546ee20a28226cdeddba29d8ae86c3750ef0f76 |
| turbo-cache-control | no-preview |
| go-import | github.com/JSONPath-Plus/JSONPath git https://github.com/JSONPath-Plus/JSONPath.git |
| octolytics-dimension-user_id | 67874603 |
| octolytics-dimension-user_login | JSONPath-Plus |
| octolytics-dimension-repository_id | 1716525 |
| octolytics-dimension-repository_nwo | JSONPath-Plus/JSONPath |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1716525 |
| octolytics-dimension-repository_network_root_nwo | JSONPath-Plus/JSONPath |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e19b0670387556fcdd8027326ad85eecb0b536dd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width