Title: Queries involving keys containing four backslashes ("\\\\") failing. · Issue #561 · stleary/JSON-java · GitHub
Open Graph Title: Queries involving keys containing four backslashes ("\\\\") failing. · Issue #561 · stleary/JSON-java
X Title: Queries involving keys containing four backslashes ("\\\\") failing. · Issue #561 · stleary/JSON-java
Description: I encountered a problem with an application when JSON keys contained four backslashes (\\). After a lot of debugging I found that JSONPointer (used in my app) was returning null when queried. Stepping through the code it seems that the t...
Open Graph Description: I encountered a problem with an application when JSON keys contained four backslashes (\\). After a lot of debugging I found that JSONPointer (used in my app) was returning null when queried. Stepp...
X Description: I encountered a problem with an application when JSON keys contained four backslashes (\\). After a lot of debugging I found that JSONPointer (used in my app) was returning null when queried. Stepp...
Opengraph URL: https://github.com/stleary/JSON-java/issues/561
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Queries involving keys containing four backslashes (\"\\\\\\\\\") failing. ","articleBody":"I encountered a problem with an application when JSON keys contained four backslashes (\\\\\\\\).\r\n\r\nAfter a lot of debugging I found that JSONPointer (used in my app) was returning null when queried. Stepping through the code it seems that the token used for the key may be double unescaped; I saw the same token unescaped() on line 173 when the JSONPointer was built, then on line 213 when the pointer was used in a query.\r\n\r\nhttps://github.com/stleary/JSON-java/blob/master/src/main/java/org/json/JSONPointer.java#L173\r\nhttps://github.com/stleary/JSON-java/blob/master/src/main/java/org/json/JSONPointer.java#L213\r\n\r\nThis example test will fail on the trunk version of the library:\r\n\r\nhttps://github.com/jimblackler/JSON-java/commit/8d6e1d85ff581e0934b839df04554b10f6f9ab29#diff-b4df778ff5909ef85877e003ed15b3beR279\r\n\r\n(Note there are eight double slashes in the literal in the test, because it's escaped for the Java string literal)\r\n\r\nI'm not 100% sure of my understanding of the issue or the correct behavior. I'd be grateful if someone who is familiar with the practices handling these strings could comment or confirm, and also advise if the fix in the patch above is something that I should submit.","author":{"url":"https://github.com/jimblackler","@type":"Person","name":"jimblackler"},"datePublished":"2020-08-25T18:34:21Z","url":"https://github.com/stleary/JSON-java/issues/561"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:535e6d68-b359-6b7d-ad4c-54006b722dbe |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B832:232A10:253D0F:33676B:6AFD5383 |
| html-safe-nonce | 6ac490ffadc871639205e50abcd0c287ef5052939966c5401930ce47981e7bfb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCODMyOjIzMkExMDoyNTNEMEY6MzM2NzZCOjZBRkQ1MzgzIiwidmlzaXRvcl9pZCI6IjI5MzU1ODQ0OTkwNjYyOTUxNzEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 6732c4e5c969109e4230d19665f3c6399aaac05d16880d75ca54fbb3b8fc7d6b |
| hovercard-subject-tag | issue:685701317 |
| 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/stleary/JSON-java/561/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ae32dc7c18d07f15de58ae1c6567b2a99db8426e1b36c4db8120a74b521cd6b2/stleary/JSON-java/issues/561 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ae32dc7c18d07f15de58ae1c6567b2a99db8426e1b36c4db8120a74b521cd6b2/stleary/JSON-java/issues/561 |
| og:image:alt | I encountered a problem with an application when JSON keys contained four backslashes (\\). After a lot of debugging I found that JSONPointer (used in my app) was returning null when queried. Stepp... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jimblackler |
| hostname | github.com |
| expected-hostname | github.com |
| None | 66653c2e55a6fff2930be1bdf07ee4f8aa137e3956d056c822563be6f878755e |
| turbo-cache-control | no-preview |
| go-import | github.com/stleary/JSON-java git https://github.com/stleary/JSON-java.git |
| octolytics-dimension-user_id | 5107558 |
| octolytics-dimension-user_login | stleary |
| octolytics-dimension-repository_id | 1187853 |
| octolytics-dimension-repository_nwo | stleary/JSON-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1187853 |
| octolytics-dimension-repository_network_root_nwo | stleary/JSON-java |
| 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 | b6f01f7cb9f35f8c09949773241a3d49dd04b340 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width