Title: Add fix for issue #357 - strick parsing of null, true and false keywords by abhisheks-gh · Pull Request #367 · json-iterator/java · GitHub
Open Graph Title: Add fix for issue #357 - strick parsing of null, true and false keywords by abhisheks-gh · Pull Request #367 · json-iterator/java
X Title: Add fix for issue #357 - strick parsing of null, true and false keywords by abhisheks-gh · Pull Request #367 · json-iterator/java
Description: This PR enforces strict JSON parsing for the null, true, and false keywords. It fixes cases where the parser would accept invalid literals such as "nope", "t123", or "fxxxx" by reading the first token and blindly skipping the remaining bytes using skipFixedBytes(). The change updates readNull() and readBoolean() to validate exact keyword bytes and fixes their usage across switch cases to avoid partial or incorrect matches.
Open Graph Description: This PR enforces strict JSON parsing for the null, true, and false keywords. It fixes cases where the parser would accept invalid literals such as "nope", "t123", or "fxxxx...
X Description: This PR enforces strict JSON parsing for the null, true, and false keywords. It fixes cases where the parser would accept invalid literals such as "nope", "t123"...
Opengraph URL: https://github.com/json-iterator/java/pull/367
X: @github
Domain: patch-diff.githubusercontent.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:d8b30007-aff8-8bee-384b-8aec7d7e8163 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9A4C:169FC4:E6CDF5:135C83D:69705114 |
| html-safe-nonce | 32a1004a0c5baf5f2a648c461e54b981a0a9788e81d31a129535c02189fb4533 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QTRDOjE2OUZDNDpFNkNERjU6MTM1QzgzRDo2OTcwNTExNCIsInZpc2l0b3JfaWQiOiIyNzE2Mjk2NDkxMjQ3MzU4MjI4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 1134bf578cae9b55619d5515c847fafa3ff6f152c54022d0238057e2a6c90d19 |
| hovercard-subject-tag | pull_request:3140719776 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/json-iterator/java/pull/367/files |
| twitter:image | https://avatars.githubusercontent.com/u/95921032?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/95921032?s=400&v=4 |
| og:image:alt | This PR enforces strict JSON parsing for the null, true, and false keywords. It fixes cases where the parser would accept invalid literals such as "nope", "t123", or "fxxxx... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9920a62ba22d06470388e2904804fb7e5ec51c9e35f81784e9191394c74b2bd2 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/json-iterator/java git https://github.com/json-iterator/java.git |
| octolytics-dimension-user_id | 24260074 |
| octolytics-dimension-user_login | json-iterator |
| octolytics-dimension-repository_id | 75621695 |
| octolytics-dimension-repository_nwo | json-iterator/java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 75621695 |
| octolytics-dimension-repository_network_root_nwo | json-iterator/java |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f643964067a552f02067066d6a910b2f90a5721f |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width