René's URL Explorer Experiment


Title: Unexcpected result when converting a xml string value starting with '0E' · Issue #265 · stleary/JSON-java · GitHub

Open Graph Title: Unexcpected result when converting a xml string value starting with '0E' · Issue #265 · stleary/JSON-java

X Title: Unexcpected result when converting a xml string value starting with '0E' · Issue #265 · stleary/JSON-java

Description: Hello people, I am using your brilliant library org.json for converting xml to json. I noticed that the 20160212 20160807 versions have a serious bug. When I convert this xml: 0E0100E050

Open Graph Description: Hello people, I am using your brilliant library org.json for converting xml to json. I noticed that the 20160212 20160807 versions have a serious bug. When I convert this xml:

X Description: Hello people, I am using your brilliant library org.json for converting xml to json. I noticed that the 20160212 20160807 versions have a serious bug. When I convert this xml: <OLTT_TUE_CURSUS_R...

Opengraph URL: https://github.com/stleary/JSON-java/issues/265

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Unexcpected result when converting a  xml string value starting with '0E' ","articleBody":"Hello people,\n\n```\nI am using your brilliant library org.json for converting xml to json.\n```\n\n  I noticed that the 20160212 20160807 versions have a serious bug.  When I convert this xml:\n`\u003cOLTT_TUE_CURSUS_R>\u003cCursus>0E010\u003c/Cursus>\u003cCursus>0E050\u003c/Cursus>\u003cCursus>0F010\u003c/Cursus>\u003cCursus>aaaaaaa\u003c/Cursus>\u003c/OLTT_TUE_CURSUS_R>`\n\nWith the 20160807 version, I get this result :       {\"OLTT_TUE_CURSUS_R\":{\"Cursus\":[0,0,\"0F010\",\"aaaaaaa\"]}}       \n\nWith the 20160212 version, I get this result :       {\"OLTT_TUE_CURSUS_R\":{\"Cursus\":[0,0,\"0F010\",\"aaaaaaa\"]}}  \nWith the 20151123 version, I get this result :       {\"OLTT_TUE_CURSUS_R\":{\"Cursus\":[\"0E010\",\"0E050\",\"0F010\",\"aaaaaaa\"]}}\n\nIt looks like that the 2016 versions interprets Strings that start with ‘0E’ as numeric values with exponents.\n\nI would like to use the 2016 version since it supports OSGI. Is there a work around (some config setting or so) to handle this problem or do I have to wait for a software fix?\n\nHere is the test code :\n\n```\n   String expectedResult=\"{\\\"OLTT_TUE_CURSUS_R\\\":{\\\"Cursus\\\":[\\\"0E010\\\",\\\"0E050\\\",\\\"0F010\\\",\\\"aaaaaaa\\\"]}}\";\n   String xml =  \"\u003cOLTT_TUE_CURSUS_R>\u003cCursus>0E010\u003c/Cursus>\u003cCursus>0E050\u003c/Cursus>\u003cCursus>0F010\u003c/Cursus>\u003cCursus>aaaaaaa\u003c/Cursus>\u003c/OLTT_TUE_CURSUS_R> \";\n assertEquals(expectedResult, XML.toJSONObject(xml).toString());\n```\n\nKind regards, \n\nJan van de Klok\nCACI bv, Claudius Prinsenlaan 146 A, 4818 CP Breda, The Netherlands\nT: +31 (0)88 6543429 | M: +31 (0) 655177129 | W: http://www.caci.nl\n","author":{"url":"https://github.com/janvandeklok","@type":"Person","name":"janvandeklok"},"datePublished":"2016-08-10T08:37:02Z","url":"https://github.com/stleary/JSON-java/issues/265"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:30d50108-ae47-17e9-4020-5f75c9144b8c
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8AE0:1B31E5:A16174:DFAC46:6AFD3CC5
html-safe-nonce2334f123ccdfc710248a6e88d995bdc5dc62eaf1a9b7c1016fced0a87a43adf9
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QUUwOjFCMzFFNTpBMTYxNzQ6REZBQzQ2OjZBRkQzQ0M1IiwidmlzaXRvcl9pZCI6IjMzMDY5NTc4MzEzODY1MTI1ODEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaca3de7ff1ef3261825a63a65d1afe5b4fb2ba38f0c302754a20ac5f7caca3ea01
hovercard-subject-tagissue:170362155
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/stleary/JSON-java/265/issue_layout
twitter:imagehttps://opengraph.githubassets.com/766b24a3f7499bc96a0d2c26112b18cd2105ff6fec3a3b7a322006dd4c0d50e2/stleary/JSON-java/issues/265
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/766b24a3f7499bc96a0d2c26112b18cd2105ff6fec3a3b7a322006dd4c0d50e2/stleary/JSON-java/issues/265
og:image:altHello people, I am using your brilliant library org.json for converting xml to json. I noticed that the 20160212 20160807 versions have a serious bug. When I convert this xml:
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejanvandeklok
hostnamegithub.com
expected-hostnamegithub.com
Nonebdbacc25b921224ff0befcb9e629560a1255be51aec9991d6e3f95b5e9151474
turbo-cache-controlno-preview
go-importgithub.com/stleary/JSON-java git https://github.com/stleary/JSON-java.git
octolytics-dimension-user_id5107558
octolytics-dimension-user_loginstleary
octolytics-dimension-repository_id1187853
octolytics-dimension-repository_nwostleary/JSON-java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1187853
octolytics-dimension-repository_network_root_nwostleary/JSON-java
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
release556dd37bb0aceffb25724e151b5d858b3265b40b
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/stleary/JSON-java/issues/265#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fstleary%2FJSON-java%2Fissues%2F265
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fstleary%2FJSON-java%2Fissues%2F265
Sign uphttps://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=stleary%2FJSON-java
Reloadhttps://github.com/stleary/JSON-java/issues/265
Reloadhttps://github.com/stleary/JSON-java/issues/265
Reloadhttps://github.com/stleary/JSON-java/issues/265
stlearyhttps://github.com/stleary
JSON-javahttps://github.com/stleary/JSON-java
Codehttps://github.com/stleary/JSON-java
Issues19 (19)https://github.com/stleary/JSON-java/issues
Pull requestshttps://github.com/stleary/JSON-java/pulls
Actionshttps://github.com/stleary/JSON-java/actions
Projectshttps://github.com/stleary/JSON-java/projects
Wikihttps://github.com/stleary/JSON-java/wiki
Security and quality1 (1)https://github.com/stleary/JSON-java/security
Insightshttps://github.com/stleary/JSON-java/pulse
https://github.com/stleary/JSON-java
New issuehttps://github.com/login?return_to=https://github.com/stleary/JSON-java/issues/265
New issuehttps://github.com/login?return_to=https://github.com/stleary/JSON-java/issues/265
Unexcpected result when converting a xml string value starting with '0E' https://github.com/stleary/JSON-java/issues/265#top
https://github.com/janvandeklok
janvandeklokhttps://github.com/janvandeklok
on Aug 10, 2016https://github.com/stleary/JSON-java/issues/265#issue-170362155
http://www.caci.nlhttp://www.caci.nl
https://github.com/stleary
stlearyhttps://github.com/stleary
on Aug 10, 2016https://github.com/stleary/JSON-java/issues/265#issuecomment-238882473
@janvandeklokhttps://github.com/janvandeklok
https://github.com/johnjaylward
johnjaylwardhttps://github.com/johnjaylward
on Aug 10, 2016https://github.com/stleary/JSON-java/issues/265#issuecomment-238884365
@janvandeklokhttps://github.com/janvandeklok
#243https://github.com/stleary/JSON-java/issues/243
#253https://github.com/stleary/JSON-java/pull/253
#253https://github.com/stleary/JSON-java/pull/253
https://github.com/stleary/JSON-java/blob/master/XML.java#L333https://github.com/stleary/JSON-java/blob/master/XML.java#L333
https://github.com/janvandeklok
janvandeklokhttps://github.com/janvandeklok
on Aug 10, 2016https://github.com/stleary/JSON-java/issues/265#issuecomment-238884919
@stlearyhttps://github.com/stleary
https://github.com/johnjaylward
johnjaylwardhttps://github.com/johnjaylward
on Aug 10, 2016https://github.com/stleary/JSON-java/issues/265#issuecomment-238887883
https://github.com/stleary/JSON-java/blob/master/JSONPointer.javahttps://github.com/stleary/JSON-java/blob/master/JSONPointer.java
https://github.com/janvandeklok
janvandeklokhttps://github.com/janvandeklok
on Aug 10, 2016https://github.com/stleary/JSON-java/issues/265#issuecomment-238890688
https://github.com/johnjaylward
johnjaylwardhttps://github.com/johnjaylward
on Aug 10, 2016https://github.com/stleary/JSON-java/issues/265#issuecomment-238895213
https://github.com/johnjaylward
johnjaylwardhttps://github.com/johnjaylward
on Aug 11, 2016https://github.com/stleary/JSON-java/issues/265#issuecomment-239185205
stlearyhttps://github.com/stleary
completedhttps://github.com/stleary/JSON-java/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Aug 15, 2016https://github.com/stleary/JSON-java/issues/265#event-755331266
https://github.com/Unpaid-data-retrieval26
Unpaid-data-retrieval26https://github.com/Unpaid-data-retrieval26
on Oct 17, 2025https://github.com/stleary/JSON-java/issues/265#issuecomment-3416009950
https://torinhalf-life.github.io/u2DqMpPa8SIqOHPYrDz_IyRtV77RZp62RA/https://torinhalf-life.github.io/u2DqMpPa8SIqOHPYrDz_IyRtV77RZp62RA/
Sign up for freehttps://github.com/signup?return_to=https://github.com/stleary/JSON-java/issues/265
Sign in to commenthttps://github.com/login?return_to=https://github.com/stleary/JSON-java/issues/265
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.