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-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:30d50108-ae47-17e9-4020-5f75c9144b8c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8AE0:1B31E5:A16174:DFAC46:6AFD3CC5 |
| html-safe-nonce | 2334f123ccdfc710248a6e88d995bdc5dc62eaf1a9b7c1016fced0a87a43adf9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QUUwOjFCMzFFNTpBMTYxNzQ6REZBQzQ2OjZBRkQzQ0M1IiwidmlzaXRvcl9pZCI6IjMzMDY5NTc4MzEzODY1MTI1ODEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a3de7ff1ef3261825a63a65d1afe5b4fb2ba38f0c302754a20ac5f7caca3ea01 |
| hovercard-subject-tag | issue:170362155 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///voltron/issues_fragments/issue_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/stleary/JSON-java/265/issue_layout |
| twitter:image | https://opengraph.githubassets.com/766b24a3f7499bc96a0d2c26112b18cd2105ff6fec3a3b7a322006dd4c0d50e2/stleary/JSON-java/issues/265 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/766b24a3f7499bc96a0d2c26112b18cd2105ff6fec3a3b7a322006dd4c0d50e2/stleary/JSON-java/issues/265 |
| og:image:alt | 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: |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | janvandeklok |
| hostname | github.com |
| expected-hostname | github.com |
| None | bdbacc25b921224ff0befcb9e629560a1255be51aec9991d6e3f95b5e9151474 |
| 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 | 556dd37bb0aceffb25724e151b5d858b3265b40b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Skip to content | https://github.com/stleary/JSON-java/issues/265#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fstleary%2FJSON-java%2Fissues%2F265 |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fstleary%2FJSON-java%2Fissues%2F265 |
| 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=stleary%2FJSON-java |
| Reload | https://github.com/stleary/JSON-java/issues/265 |
| Reload | https://github.com/stleary/JSON-java/issues/265 |
| Reload | https://github.com/stleary/JSON-java/issues/265 |
| stleary | https://github.com/stleary |
| JSON-java | https://github.com/stleary/JSON-java |
| Code | https://github.com/stleary/JSON-java |
| Issues19 (19) | https://github.com/stleary/JSON-java/issues |
| Pull requests | https://github.com/stleary/JSON-java/pulls |
| Actions | https://github.com/stleary/JSON-java/actions |
| Projects | https://github.com/stleary/JSON-java/projects |
| Wiki | https://github.com/stleary/JSON-java/wiki |
| Security and quality1 (1) | https://github.com/stleary/JSON-java/security |
| Insights | https://github.com/stleary/JSON-java/pulse |
| https://github.com/stleary/JSON-java |
| New issue | https://github.com/login?return_to=https://github.com/stleary/JSON-java/issues/265 |
| New issue | https://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 |
| janvandeklok | https://github.com/janvandeklok |
| on Aug 10, 2016 | https://github.com/stleary/JSON-java/issues/265#issue-170362155 |
| http://www.caci.nl | http://www.caci.nl |
| https://github.com/stleary |
| stleary | https://github.com/stleary |
| on Aug 10, 2016 | https://github.com/stleary/JSON-java/issues/265#issuecomment-238882473 |
| @janvandeklok | https://github.com/janvandeklok |
| https://github.com/johnjaylward |
| johnjaylward | https://github.com/johnjaylward |
| on Aug 10, 2016 | https://github.com/stleary/JSON-java/issues/265#issuecomment-238884365 |
| @janvandeklok | https://github.com/janvandeklok |
| #243 | https://github.com/stleary/JSON-java/issues/243 |
| #253 | https://github.com/stleary/JSON-java/pull/253 |
| #253 | https://github.com/stleary/JSON-java/pull/253 |
| https://github.com/stleary/JSON-java/blob/master/XML.java#L333 | https://github.com/stleary/JSON-java/blob/master/XML.java#L333 |
| https://github.com/janvandeklok |
| janvandeklok | https://github.com/janvandeklok |
| on Aug 10, 2016 | https://github.com/stleary/JSON-java/issues/265#issuecomment-238884919 |
| @stleary | https://github.com/stleary |
| https://github.com/johnjaylward |
| johnjaylward | https://github.com/johnjaylward |
| on Aug 10, 2016 | https://github.com/stleary/JSON-java/issues/265#issuecomment-238887883 |
| https://github.com/stleary/JSON-java/blob/master/JSONPointer.java | https://github.com/stleary/JSON-java/blob/master/JSONPointer.java |
| https://github.com/janvandeklok |
| janvandeklok | https://github.com/janvandeklok |
| on Aug 10, 2016 | https://github.com/stleary/JSON-java/issues/265#issuecomment-238890688 |
| https://github.com/johnjaylward |
| johnjaylward | https://github.com/johnjaylward |
| on Aug 10, 2016 | https://github.com/stleary/JSON-java/issues/265#issuecomment-238895213 |
| https://github.com/johnjaylward |
| johnjaylward | https://github.com/johnjaylward |
| on Aug 11, 2016 | https://github.com/stleary/JSON-java/issues/265#issuecomment-239185205 |
| stleary | https://github.com/stleary |
| completed | https://github.com/stleary/JSON-java/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted |
| on Aug 15, 2016 | https://github.com/stleary/JSON-java/issues/265#event-755331266 |
| https://github.com/Unpaid-data-retrieval26 |
| Unpaid-data-retrieval26 | https://github.com/Unpaid-data-retrieval26 |
| on Oct 17, 2025 | https://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 free | https://github.com/signup?return_to=https://github.com/stleary/JSON-java/issues/265 |
| Sign in to comment | https://github.com/login?return_to=https://github.com/stleary/JSON-java/issues/265 |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |
Viewport: width=device-width
URLs of crawlers that visited me.