Title: Support For N level filtering · Issue #217 · JSONPath-Plus/JSONPath · GitHub
Open Graph Title: Support For N level filtering · Issue #217 · JSONPath-Plus/JSONPath
X Title: Support For N level filtering · Issue #217 · JSONPath-Plus/JSONPath
Description: Motivation I would like to be able to filter paths to multiple degrees. This is mainly associated with filtering a dataset based on heavily nested fields, of which may also be arrays. Current behavior Does not support - Example: JSON: { ...
Open Graph Description: Motivation I would like to be able to filter paths to multiple degrees. This is mainly associated with filtering a dataset based on heavily nested fields, of which may also be arrays. Current behav...
X Description: Motivation I would like to be able to filter paths to multiple degrees. This is mainly associated with filtering a dataset based on heavily nested fields, of which may also be arrays. Current behav...
Opengraph URL: https://github.com/JSONPath-Plus/JSONPath/issues/217
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support For N level filtering","articleBody":"## Motivation\r\n\r\nI would like to be able to filter paths to multiple degrees. This is mainly associated with filtering a dataset based on heavily nested fields, of which may also be arrays.\r\n\r\n## Current behavior\r\n\r\nDoes not support - Example:\r\n\r\nJSON: \r\n```\r\n{\r\n \"name\": \"Test\",\r\n \"grouping\": {\r\n \"nested_1\": [\r\n {\r\n \"name\": \"First Level Nest\",\r\n \"nested_2\": [\r\n {\r\n \"name\": \"Second Level Nest\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}\r\n```\r\n\r\nPath: \r\n`$..grouping[?(@.nested_1.nested_2[?(@.name == \"Second Level Nest\")])]`\r\n\r\n## Desired behavior\r\n\r\nBeing able to filter to an Nth degree of a dataset through nested filter queries.\r\n\r\nIf anyone has any idea around this, or possible alternative approaches which don't heavily degrade performance, would love to hear them!\r\n","author":{"url":"https://github.com/KieranTH","@type":"Person","name":"KieranTH"},"datePublished":"2024-07-03T13:52:45.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/217/JSONPath/issues/217"}
| 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:7f3d08e2-ac7c-e02f-47c2-88865c2d8560 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C786:AAC94:1448BC0:1C91A92:696F6098 |
| html-safe-nonce | 3ec16a6ffbe629bf79d20d227889a60b6543885edbb127012ed14fab92b36343 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNzg2OkFBQzk0OjE0NDhCQzA6MUM5MUE5Mjo2OTZGNjA5OCIsInZpc2l0b3JfaWQiOiIxMjExMTE0OTExNjIyNDU1NDQ4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 9c4887199b6fce224ac9d48c01a6825edca9ea8eb25ae2b34985f18ddf1e2429 |
| hovercard-subject-tag | issue:2388705716 |
| 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/217/issue_layout |
| twitter:image | https://opengraph.githubassets.com/142c24e45baaf88a6f3fe29ee819c964e9666e1eb82036e2f001aae3b219978d/JSONPath-Plus/JSONPath/issues/217 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/142c24e45baaf88a6f3fe29ee819c964e9666e1eb82036e2f001aae3b219978d/JSONPath-Plus/JSONPath/issues/217 |
| og:image:alt | Motivation I would like to be able to filter paths to multiple degrees. This is mainly associated with filtering a dataset based on heavily nested fields, of which may also be arrays. Current behav... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | KieranTH |
| hostname | github.com |
| expected-hostname | github.com |
| None | 774d0922d2c4577043d2dab90427344eb4c6ce1d5579acb1dd504cff1a7e46f8 |
| 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 | 650acea592f12d1bd8931d44546c209e0b06ed6e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width