René's URL Explorer Experiment


Title: XML.toJSONObject interprets certain strings as infinite numbers · Issue #27 · stleary/JSON-java · GitHub

Open Graph Title: XML.toJSONObject interprets certain strings as infinite numbers · Issue #27 · stleary/JSON-java

X Title: XML.toJSONObject interprets certain strings as infinite numbers · Issue #27 · stleary/JSON-java

Description: Take the following XML snippet as an example.

Open Graph Description: Take the following XML snippet as an example. \n\u003csubsonic-response xmlns=\"http://subsonic.org/restapi\" status=\"ok\" version=\"1.6.0\">\n \u003cplaylists>\n \u003cplaylist id=\"476c65652e6d3375\" name=\"Mood\"/>\n \u003cplaylist id=\"50617274792e78737066\" name=\"Party\"/>\n \u003c/playlists>\n\u003c/subsonic-response>\n```\n\nthe `playlist` elements have id's that are hexadecimal strings.\n\nin `\u003cplaylist id=\"50617274792e78737066\" name=\"Party\"/>` the id can also be interpreted as an exponential number. This makes the conversion of this snippet fail with the message: `org.json.JSONException: JSON does not allow non-finite numbers`\n\nI don't know if there is a way to tell the difference between a number and a string from XML but I think the problem could be avoided if instead of throwing an exception the implementation interprets the infinite number as a string in any case.\n","author":{"url":"https://github.com/bachp","@type":"Person","name":"bachp"},"datePublished":"2011-10-08T21:48:48Z","url":"https://github.com/stleary/JSON-java/issues/27"}


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:eb5504cf-f34d-fa3b-08b7-bbaeaa1f96b7
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB258:1861F0:B40270:F7B14E:6AFD3CC7
html-safe-nonce6e201840c0e99bd3e0f0e1435b153cc8607a3a7bb3abf84bd9e9ac7fd54cc3c9
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMjU4OjE4NjFGMDpCNDAyNzA6RjdCMTRFOjZBRkQzQ0M3IiwidmlzaXRvcl9pZCI6IjUwOTgwOTE3MjM2MjQzNjUyNTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac11f92fe8fb897a650b810b921a9e93bbf01fbb14d64543419ca4c66267dbdac0
hovercard-subject-tagissue:1854045
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/27/issue_layout
twitter:imagehttps://opengraph.githubassets.com/57e381241f247b79792bc03957dc50a571d31f50f77bb30f610c122dddf5ef41/stleary/JSON-java/issues/27
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/57e381241f247b79792bc03957dc50a571d31f50f77bb30f610c122dddf5ef41/stleary/JSON-java/issues/27
og:image:altTake the following XML snippet as an example.