René's URL Explorer Experiment


Title: Jackson 3: FAIL_ON_TRAILING_TOKENS default flip not compensated in main-source parsers (JSONataUtils.loadJSONFile + CLI) · Issue #435 · IBM/JSONata4Java · GitHub

Open Graph Title: Jackson 3: FAIL_ON_TRAILING_TOKENS default flip not compensated in main-source parsers (JSONataUtils.loadJSONFile + CLI) · Issue #435 · IBM/JSONata4Java

X Title: Jackson 3: FAIL_ON_TRAILING_TOKENS default flip not compensated in main-source parsers (JSONataUtils.loadJSONFile + CLI) · Issue #435 · IBM/JSONata4Java

Description: Summary Jackson 3 flips the FAIL_ON_TRAILING_TOKENS deserialization default from false (Jackson 2) to true. During the migration (#430, PR #431) this leniency was restored on exactly one test mapper (src/test/java/.../expressions/utils/U...

Open Graph Description: Summary Jackson 3 flips the FAIL_ON_TRAILING_TOKENS deserialization default from false (Jackson 2) to true. During the migration (#430, PR #431) this leniency was restored on exactly one test mappe...

X Description: Summary Jackson 3 flips the FAIL_ON_TRAILING_TOKENS deserialization default from false (Jackson 2) to true. During the migration (#430, PR #431) this leniency was restored on exactly one test mappe...

Opengraph URL: https://github.com/IBM/JSONata4Java/issues/435

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Jackson 3: FAIL_ON_TRAILING_TOKENS default flip not compensated in main-source parsers (JSONataUtils.loadJSONFile + CLI)","articleBody":"## Summary\n\nJackson 3 flips the `FAIL_ON_TRAILING_TOKENS` deserialization default from `false` (Jackson 2) to `true`. During the migration (#430, PR #431) this leniency was restored on exactly **one** test mapper (`src/test/java/.../expressions/utils/Utils.java:83`) but was **not** restored on the main‑source parse paths, so those became stricter than under Jackson 2. Content after the first parsed value (trailing tokens / trailing typos / concatenated values) that Jackson 2 silently ignored now throws at runtime.\n\nThe core public evaluate path is unaffected (it takes a pre‑parsed `JsonNode`), which is why the test suite stayed green. The exposure is in the file/string loaders below.\n\n## Where\n\n### Main source (production / public API)\n\n- **`src/main/java/com/api/jsonata4java/JSONataUtils.java:374`** — `loadJSONFile` uses `new ObjectMapper().readValue(br, Object.class)`. This is a **public utility** used to load `.json` files. A file that loaded fine under 2.x (trailing whitespace‑separated token, two concatenated values, etc.) now throws a trailing‑token error. **Highest impact.**\n- `src/main/java/com/api/jsonata4java/Tester.java:123` — the mapper was faithfully rebuilt for `ESCAPE_NON_ASCII` but does **not** disable `FAIL_ON_TRAILING_TOKENS`. Clearest evidence the flag flip was known (fixed in test `Utils`) but applied inconsistently. CLI tool, lower impact.\n- `src/main/java/com/api/jsonata4java/TesterTimeBox.java:121` — `new ObjectMapper()` for `readTree`. CLI tool.\n- `src/main/java/com/api/jsonata4java/testerui/TesterUI.java` and `Test.java` — same pattern; demo/UI, low impact.\n\n### Test source (latent inconsistency)\n\n- `src/test/java/.../expressions/utils/Utils.java:76` (`getJson`) and `:247` (`toJson`) still use bare `new ObjectMapper()` while the sibling `mapper` field (line 83) disables `FAIL_ON_TRAILING_TOKENS`. Same file, divergent parsing. Currently latent (both helpers are unreferenced), but it undermines the \"parse identically to Jackson 2\" intent stated in the line‑83 comment.\n\n## Verified\n\n`FAIL_ON_TRAILING_TOKENS` defaults to `true` in jackson‑databind 3.2.0 (bytecode: `iconst_1` in the enum init) vs `false` in Jackson 2. Only `Utils.java:83` compensates.\n\n## Suggested fix\n\nIntroduce a single shared \"Jackson‑2‑compatible\" mapper factory (disabling `FAIL_ON_TRAILING_TOKENS`, and centralizing `ESCAPE_NON_ASCII` etc.) and route all parse sites through it — at minimum `JSONataUtils.loadJSONFile`, and the `Utils.java` `getJson`/`toJson` helpers, so parsing behavior no longer diverges by call site. This also addresses the duplicated builder configuration noted during review (identical `JsonMapper.builder()...` blocks now appear in `AgnosticTestSuite` and `Tester`).\n","author":{"url":"https://github.com/wnm3","@type":"Person","name":"wnm3"},"datePublished":"2026-07-07T16:39:51.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/435/JSONata4Java/issues/435"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:8ab9cd96-7cf9-7aa6-db76-67b3589e037c
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id972C:E2378:429D3F3:5B94A28:6A4F4591
html-safe-nonce68030dfde3bcff63d54c5855e064f83a48cf0543d1801fe7f986d69465984339
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NzJDOkUyMzc4OjQyOUQzRjM6NUI5NEEyODo2QTRGNDU5MSIsInZpc2l0b3JfaWQiOiIzMDU4MzA3NjM2MTQ1Mzc0NjA5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac37dcfd9061e2c4def11529c483e06f968d20170cc4aaf0e3525b34da8601ba27
hovercard-subject-tagissue:4830456731
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/IBM/JSONata4Java/435/issue_layout
twitter:imagehttps://opengraph.githubassets.com/3ad68f17df4aaec207e77d50d99d537c6af1b2cd50c781d11307dc36c1e8e47e/IBM/JSONata4Java/issues/435
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/3ad68f17df4aaec207e77d50d99d537c6af1b2cd50c781d11307dc36c1e8e47e/IBM/JSONata4Java/issues/435
og:image:altSummary Jackson 3 flips the FAIL_ON_TRAILING_TOKENS deserialization default from false (Jackson 2) to true. During the migration (#430, PR #431) this leniency was restored on exactly one test mappe...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamewnm3
hostnamegithub.com
expected-hostnamegithub.com
Noneb92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9
turbo-cache-controlno-preview
go-importgithub.com/IBM/JSONata4Java git https://github.com/IBM/JSONata4Java.git
octolytics-dimension-user_id1459110
octolytics-dimension-user_loginIBM
octolytics-dimension-repository_id169904880
octolytics-dimension-repository_nwoIBM/JSONata4Java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id169904880
octolytics-dimension-repository_network_root_nwoIBM/JSONata4Java
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release4b249b445842943ed31549e027f57a8ade9881ed
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/IBM/JSONata4Java/issues/435#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FIBM%2FJSONata4Java%2Fissues%2F435
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FIBM%2FJSONata4Java%2Fissues%2F435
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=IBM%2FJSONata4Java
Reloadhttps://github.com/IBM/JSONata4Java/issues/435
Reloadhttps://github.com/IBM/JSONata4Java/issues/435
Reloadhttps://github.com/IBM/JSONata4Java/issues/435
Please reload this pagehttps://github.com/IBM/JSONata4Java/issues/435
IBM https://github.com/IBM
JSONata4Javahttps://github.com/IBM/JSONata4Java
Notifications https://github.com/login?return_to=%2FIBM%2FJSONata4Java
Fork 41 https://github.com/login?return_to=%2FIBM%2FJSONata4Java
Star 128 https://github.com/login?return_to=%2FIBM%2FJSONata4Java
Code https://github.com/IBM/JSONata4Java
Issues 80 https://github.com/IBM/JSONata4Java/issues
Pull requests 0 https://github.com/IBM/JSONata4Java/pulls
Actions https://github.com/IBM/JSONata4Java/actions
Projects https://github.com/IBM/JSONata4Java/projects
Security and quality 0 https://github.com/IBM/JSONata4Java/security
Insights https://github.com/IBM/JSONata4Java/pulse
Code https://github.com/IBM/JSONata4Java
Issues https://github.com/IBM/JSONata4Java/issues
Pull requests https://github.com/IBM/JSONata4Java/pulls
Actions https://github.com/IBM/JSONata4Java/actions
Projects https://github.com/IBM/JSONata4Java/projects
Security and quality https://github.com/IBM/JSONata4Java/security
Insights https://github.com/IBM/JSONata4Java/pulse
Jackson 3: FAIL_ON_TRAILING_TOKENS default flip not compensated in main-source parsers (JSONataUtils.loadJSONFile + CLI)https://github.com/IBM/JSONata4Java/issues/435#top
bugSomething isn't workinghttps://github.com/IBM/JSONata4Java/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/wnm3
wnm3https://github.com/wnm3
on Jul 7, 2026https://github.com/IBM/JSONata4Java/issues/435#issue-4830456731
#430https://github.com/IBM/JSONata4Java/issues/430
#431https://github.com/IBM/JSONata4Java/pull/431
bugSomething isn't workinghttps://github.com/IBM/JSONata4Java/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.