René's URL Explorer Experiment


Title: Invalid XML2JSON conversion of bitmask with a leading 1 · Issue #1025 · stleary/JSON-java · GitHub

Open Graph Title: Invalid XML2JSON conversion of bitmask with a leading 1 · Issue #1025 · stleary/JSON-java

X Title: Invalid XML2JSON conversion of bitmask with a leading 1 · Issue #1025 · stleary/JSON-java

Description: We are using the following XML to JSON conversion in our code bases. private JSONObject xmlToJson() throws Exception { JSONObject jsonObj = null; FileReader fr = new FileReader(benchmarkXmlFile); // Reads the XML file (data.xml) jsonObj ...

Open Graph Description: We are using the following XML to JSON conversion in our code bases. private JSONObject xmlToJson() throws Exception { JSONObject jsonObj = null; FileReader fr = new FileReader(benchmarkXmlFile); /...

X Description: We are using the following XML to JSON conversion in our code bases. private JSONObject xmlToJson() throws Exception { JSONObject jsonObj = null; FileReader fr = new FileReader(benchmarkXmlFile); /...

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

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Invalid XML2JSON conversion of bitmask with a leading 1","articleBody":"We are using the following XML to JSON conversion in our code bases.\n\n```\nprivate JSONObject xmlToJson() throws Exception {\n        JSONObject jsonObj = null;\n        FileReader fr = new FileReader(benchmarkXmlFile); // Reads the XML file (data.xml)\n        jsonObj = XML.toJSONObject(fr); // Performs the conversion using org.json.XML\n        fr.close();\n        return jsonObj;\n    }\n```\n\nThe XML file contains  a bitmask\n```\n\u003cProcessAffinity\u003e\n          \u003cRanks\u003e\n            \u003cRank\u003e0\u003c/Rank\u003e\n            \u003cMask\u003e1000000000000000000000000000000000000000000000000000\u003c/Mask\u003e\n          \u003c/Ranks\u003e\n\u003c/ProcessAffinity\u003e\n```\n\nThis bit mask is converted to a floating point number in JSON, only if it has a leading \"1\" otherwise the conversion is valid:\n\n\u003cimg width=\"1177\" height=\"258\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/806ddea3-b9fe-40b0-85b0-e0623b93262b\" /\u003e","author":{"url":"https://github.com/mhmarkushuber","@type":"Person","name":"mhmarkushuber"},"datePublished":"2025-12-08T08:27:23.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/1025/JSON-java/issues/1025"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:8b8015c0-9d98-6a0b-35ae-a2ee506d7c01
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC0E4:3301CD:84C4C44:B07E74A:696E0950
html-safe-noncedbb85a0f46cd2122efe9b1cd8e8c7edf764521c3a5b0a4d356f5725479db36ac
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMEU0OjMzMDFDRDo4NEM0QzQ0OkIwN0U3NEE6Njk2RTA5NTAiLCJ2aXNpdG9yX2lkIjoiNTQ1NjY3MzUwMzg4NDEwNzA0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac6771e165c9ed12dee68e0837ac07cfc8fd1ee666f4c77fde39c3710d62cb0f87
hovercard-subject-tagissue:3705227438
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/1025/issue_layout
twitter:imagehttps://opengraph.githubassets.com/b4dc447c6cbd6761cbf726152d6b279ae018d190bd9aeef98ff50ed88947a47e/stleary/JSON-java/issues/1025
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b4dc447c6cbd6761cbf726152d6b279ae018d190bd9aeef98ff50ed88947a47e/stleary/JSON-java/issues/1025
og:image:altWe are using the following XML to JSON conversion in our code bases. private JSONObject xmlToJson() throws Exception { JSONObject jsonObj = null; FileReader fr = new FileReader(benchmarkXmlFile); /...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemhmarkushuber
hostnamegithub.com
expected-hostnamegithub.com
None0b1760aa20e1a810eba6245d04e3885be7363dfe08d08b61f605c852359472e0
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
release84090305cd10c2b140bf307f69f57f0892b4f215
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/stleary/JSON-java/issues/1025#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fstleary%2FJSON-java%2Fissues%2F1025
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
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
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
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/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://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fstleary%2FJSON-java%2Fissues%2F1025
Sign up https://patch-diff.githubusercontent.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://patch-diff.githubusercontent.com/stleary/JSON-java/issues/1025
Reloadhttps://patch-diff.githubusercontent.com/stleary/JSON-java/issues/1025
Reloadhttps://patch-diff.githubusercontent.com/stleary/JSON-java/issues/1025
stleary https://patch-diff.githubusercontent.com/stleary
JSON-javahttps://patch-diff.githubusercontent.com/stleary/JSON-java
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fstleary%2FJSON-java
Fork 2.6k https://patch-diff.githubusercontent.com/login?return_to=%2Fstleary%2FJSON-java
Star 4.7k https://patch-diff.githubusercontent.com/login?return_to=%2Fstleary%2FJSON-java
Code https://patch-diff.githubusercontent.com/stleary/JSON-java
Issues 25 https://patch-diff.githubusercontent.com/stleary/JSON-java/issues
Pull requests 0 https://patch-diff.githubusercontent.com/stleary/JSON-java/pulls
Actions https://patch-diff.githubusercontent.com/stleary/JSON-java/actions
Projects 0 https://patch-diff.githubusercontent.com/stleary/JSON-java/projects
Wiki https://patch-diff.githubusercontent.com/stleary/JSON-java/wiki
Security Uh oh! There was an error while loading. Please reload this page. https://patch-diff.githubusercontent.com/stleary/JSON-java/security
Please reload this pagehttps://patch-diff.githubusercontent.com/stleary/JSON-java/issues/1025
Insights https://patch-diff.githubusercontent.com/stleary/JSON-java/pulse
Code https://patch-diff.githubusercontent.com/stleary/JSON-java
Issues https://patch-diff.githubusercontent.com/stleary/JSON-java/issues
Pull requests https://patch-diff.githubusercontent.com/stleary/JSON-java/pulls
Actions https://patch-diff.githubusercontent.com/stleary/JSON-java/actions
Projects https://patch-diff.githubusercontent.com/stleary/JSON-java/projects
Wiki https://patch-diff.githubusercontent.com/stleary/JSON-java/wiki
Security https://patch-diff.githubusercontent.com/stleary/JSON-java/security
Insights https://patch-diff.githubusercontent.com/stleary/JSON-java/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/stleary/JSON-java/issues/1025
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/stleary/JSON-java/issues/1025
Invalid XML2JSON conversion of bitmask with a leading 1https://patch-diff.githubusercontent.com/stleary/JSON-java/issues/1025#top
Active discussionhttps://github.com/stleary/JSON-java/issues?q=state%3Aopen%20label%3A%22Active%20discussion%22
Pending response from submitterhttps://github.com/stleary/JSON-java/issues?q=state%3Aopen%20label%3A%22Pending%20response%20from%20submitter%22
https://github.com/mhmarkushuber
https://github.com/mhmarkushuber
mhmarkushuberhttps://github.com/mhmarkushuber
on Dec 8, 2025https://github.com/stleary/JSON-java/issues/1025#issue-3705227438
https://private-user-images.githubusercontent.com/248427848/523656496-806ddea3-b9fe-40b0-85b0-e0623b93262b.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Njg4MTkzMjUsIm5iZiI6MTc2ODgxOTAyNSwicGF0aCI6Ii8yNDg0Mjc4NDgvNTIzNjU2NDk2LTgwNmRkZWEzLWI5ZmUtNDBiMC04NWIwLWUwNjIzYjkzMjYyYi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwMTE5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDExOVQxMDM3MDVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0yMmJkNTliZDc1ZDE4NWJkMTk0MmEyMDAwM2E5OTM5NjdkMTBlMmZkMjc2YmFhZjdjZmJlOTliZDkwNDUxMzc5JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.I9V6WNFVmrftpv1j2Wu-m4FCmBANqoWc5LWkggEeXgI
Active discussionhttps://github.com/stleary/JSON-java/issues?q=state%3Aopen%20label%3A%22Active%20discussion%22
Pending response from submitterhttps://github.com/stleary/JSON-java/issues?q=state%3Aopen%20label%3A%22Pending%20response%20from%20submitter%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.