Title: Strings that are valid numbers in scientific notation get transformed when converting XML into JSON · Issue #230 · stleary/JSON-java · GitHub
Open Graph Title: Strings that are valid numbers in scientific notation get transformed when converting XML into JSON · Issue #230 · stleary/JSON-java
X Title: Strings that are valid numbers in scientific notation get transformed when converting XML into JSON · Issue #230 · stleary/JSON-java
Description: If you have a string in your XML, that also happens to be a valid number in scientific notation, it will be transformed into a java representation of that number when XML is transformed into JSONObject: XML.toJSONObject("
Open Graph Description: If you have a string in your XML, that also happens to be a valid number in scientific notation, it will be transformed into a java representation of that number when XML is transformed into JSONOb...
X Description: If you have a string in your XML, that also happens to be a valid number in scientific notation, it will be transformed into a java representation of that number when XML is transformed into JSONOb...
Opengraph URL: https://github.com/stleary/JSON-java/issues/230
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Strings that are valid numbers in scientific notation get transformed when converting XML into JSON","articleBody":"If you have a string in your XML, that also happens to be a valid number in scientific notation, it will be transformed into a java representation of that number when XML is transformed into JSONObject:\n\n```\nXML.toJSONObject(\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"yes\\\"?>\\n\" +\n \"\u003cstr1>045e5000\u003c/str1>\\n\" +\n \"\u003cstr2>45e5000\u003c/str2>\\n\" +\n \"\u003cstr3>045e50\u003c/str3>\\n\" +\n \"\u003cstr4>45e5\u003c/str4>\");\n```\n\nwill return\n\n```\n{\"str1\":\"045e5000\",\"str4\":4500000,\"str3\":4.5E51,\"str2\":\"45e5000\"}\n```\n\nI understand that vanilla XML doesn't have a way to define types, but I still think this is a very unpredictable behavior. I am not sure how to solve it. Possibly, do not convert e notations and leave them as strings?\n","author":{"url":"https://github.com/oleg-gr","@type":"Person","name":"oleg-gr"},"datePublished":"2016-05-10T04:50:17Z","url":"https://github.com/stleary/JSON-java/issues/230"}
| 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:8c93b562-314e-a5bb-cc2f-6386f1acf1aa |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B732:126CB9:243F816:32798E1:6AFD3DBB |
| html-safe-nonce | 214b0ee6174c7d17fcd0f1dbf0c82c8d19cc676ba5d54b3d60f915b3484a1cad |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNzMyOjEyNkNCOToyNDNGODE2OjMyNzk4RTE6NkFGRDNEQkIiLCJ2aXNpdG9yX2lkIjoiODA2MzkyODU3MDM2OTM1OTI5MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | db71061ea6ef849659d5fa13f710a114952b37defe07e3e4f3dc8013f4933323 |
| hovercard-subject-tag | issue:153923358 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/stleary/JSON-java/230/issue_layout |
| twitter:image | https://opengraph.githubassets.com/32e98f677ec75927c8a2a0ad1647dcd4b2c50527ee4d8b08b996d41e12df41b1/stleary/JSON-java/issues/230 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/32e98f677ec75927c8a2a0ad1647dcd4b2c50527ee4d8b08b996d41e12df41b1/stleary/JSON-java/issues/230 |
| og:image:alt | If you have a string in your XML, that also happens to be a valid number in scientific notation, it will be transformed into a java representation of that number when XML is transformed into JSONOb... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | oleg-gr |
| 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:
Viewport: width=device-width