Title: `wrap: false` does not correctly return some cases · Issue #98 · JSONPath-Plus/JSONPath · GitHub
Open Graph Title: `wrap: false` does not correctly return some cases · Issue #98 · JSONPath-Plus/JSONPath
X Title: `wrap: false` does not correctly return some cases · Issue #98 · JSONPath-Plus/JSONPath
Description: The following queries provide results that do not match those of other implementations of JSONPath (compare https://github.com/cburgmer/json-path-comparison/tree/master/comparison): $[-1:] Input: ["first", "second", "third"] Expected out...
Open Graph Description: The following queries provide results that do not match those of other implementations of JSONPath (compare https://github.com/cburgmer/json-path-comparison/tree/master/comparison): $[-1:] Input: [...
X Description: The following queries provide results that do not match those of other implementations of JSONPath (compare https://github.com/cburgmer/json-path-comparison/tree/master/comparison): $[-1:] Input: [...
Opengraph URL: https://github.com/JSONPath-Plus/JSONPath/issues/98
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`wrap: false` does not correctly return some cases","articleBody":"The following queries provide results that do not match those of other implementations of JSONPath\r\n(compare https://github.com/cburgmer/json-path-comparison/tree/master/comparison):\r\n\r\n- [ ] `$[-1:]`\r\n Input:\r\n ```\r\n [\"first\", \"second\", \"third\"]\r\n ```\r\n Expected output:\r\n ```\r\n [\"third\"]\r\n ```\r\n Actual output:\r\n ```\r\n \"third\"\r\n ```\r\n\r\n- [ ] `$[0:1]`\r\n Input:\r\n ```\r\n [\"first\", \"second\"]\r\n ```\r\n Expected output:\r\n ```\r\n [\"first\"]\r\n ```\r\n Actual output:\r\n ```\r\n \"first\"\r\n ```\r\n\r\n- [ ] `$.key`\r\n Input:\r\n ```\r\n {\"key\": [\"first\", \"second\"]}\r\n ```\r\n Expected output:\r\n ```\r\n [\"first\", \"second\"]\r\n ```\r\n Actual output:\r\n ```\r\n [[\"first\", \"second\"]]\r\n ```\r\n\r\n\r\nFor reference, the output was generated by the program in https://github.com/cburgmer/json-path-comparison/tree/master/implementations/JavaScript_jsonpath-plus.\r\n","author":{"url":"https://github.com/cburgmer","@type":"Person","name":"cburgmer"},"datePublished":"2019-06-15T22:09:11.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":13},"url":"https://github.com/98/JSONPath/issues/98"}
| 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:a5649597-e78f-cc01-b3d2-e61f2ba11839 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AF0C:3DC8AB:3368AB0:44F2EA7:6970698F |
| html-safe-nonce | fc802568a775865cc5aeb9029d550da3f86c1b074b8618b94b6dae2f1b69717a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRjBDOjNEQzhBQjozMzY4QUIwOjQ0RjJFQTc6Njk3MDY5OEYiLCJ2aXNpdG9yX2lkIjoiMzEyMzg1MDA4MjYwODI0NTEzNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 7874ad995043df114440bf45893cd40ce102997d8f0c1aa6ba6d300945ec8ddb |
| hovercard-subject-tag | issue:456580334 |
| 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/98/issue_layout |
| twitter:image | https://opengraph.githubassets.com/73d3e74cb3c940e2c8c597708947cf3ab0349a08892ef1dfa80b3462fdce4b18/JSONPath-Plus/JSONPath/issues/98 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/73d3e74cb3c940e2c8c597708947cf3ab0349a08892ef1dfa80b3462fdce4b18/JSONPath-Plus/JSONPath/issues/98 |
| og:image:alt | The following queries provide results that do not match those of other implementations of JSONPath (compare https://github.com/cburgmer/json-path-comparison/tree/master/comparison): $[-1:] Input: [... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | cburgmer |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9920a62ba22d06470388e2904804fb7e5ec51c9e35f81784e9191394c74b2bd2 |
| 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 | 7d6181066430cc06553c8396ca201e194ae33cb9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width