Title: Investigate feasibility of enhancing JSON-Java to support BigDecimal and BigInteger · Issue #126 · stleary/JSON-java · GitHub
Open Graph Title: Investigate feasibility of enhancing JSON-Java to support BigDecimal and BigInteger · Issue #126 · stleary/JSON-java
X Title: Investigate feasibility of enhancing JSON-Java to support BigDecimal and BigInteger · Issue #126 · stleary/JSON-java
Description: Following test-code will not produce expected results, the array-elements of type BigDecimal will be incorrectly quoted. I guess other Number types like BigInteger will fail too. Number[] foo = new Number[5]; foo[0] = BigDecimal.ZERO; fo...
Open Graph Description: Following test-code will not produce expected results, the array-elements of type BigDecimal will be incorrectly quoted. I guess other Number types like BigInteger will fail too. Number[] foo = new...
X Description: Following test-code will not produce expected results, the array-elements of type BigDecimal will be incorrectly quoted. I guess other Number types like BigInteger will fail too. Number[] foo = new...
Mail addresses
notifications@github.com
Opengraph URL: https://github.com/stleary/JSON-java/issues/126
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Investigate feasibility of enhancing JSON-Java to support BigDecimal and BigInteger ","articleBody":"Following test-code will not produce expected results, the array-elements of type BigDecimal will be incorrectly quoted. I guess other Number types like BigInteger will fail too.\n\nNumber[] foo = new Number[5];\nfoo[0] = BigDecimal.ZERO;\nfoo[1] = new Integer( 1 );\nfoo[2] = new BigDecimal( 1.2 );\nfoo[3] = new Integer( 3 );\nfoo[4] = new BigDecimal( 4 );\nJSONStringer s = new JSONStringer();\ns.object();\ns.key( \"bar\" );\ns.value( foo );\ns.endObject();\nSystem.out.println( s.toString() );\n\nI located the problem in the JSONObject.wrap(Object object) method line 1547 (ff) where the half dozen \"instanceof \u003csomeWrappedPrimitiveNumberType>\" comparision should be replaced by a single \"intanceof Number\".\n\n(The original code where i stumbled into this bug produces \"highcharts\" from various oracle database queries and of course, highcharts fails to produce charts from strings. Using Doubles is also no option ...)\n","author":{"url":"https://github.com/FritzMock","@type":"Person","name":"FritzMock"},"datePublished":"2015-05-19T14:59:25Z","url":"https://github.com/stleary/JSON-java/issues/126"}
| 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:a0a40765-0101-0849-ba13-33798b45ccf5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D3B8:9E9AB:5D424B:8072DE:6AFD3E5C |
| html-safe-nonce | d56318373082c03b34c2eb98e918ae660e73773291062fb67ee4fd61df745be4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEM0I4OjlFOUFCOjVENDI0Qjo4MDcyREU6NkFGRDNFNUMiLCJ2aXNpdG9yX2lkIjoiMzgzMzYwNjU3NTE5MzE0NDkyNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 69a662e185c08cf9682d85bb86ef0eb6b585411db0e0d233a745a4d364e935ed |
| hovercard-subject-tag | issue:78124066 |
| 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/126/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7d1874fd47ace99646eacbfc00eb1730303f92c36fd47b1758cca91988413803/stleary/JSON-java/issues/126 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7d1874fd47ace99646eacbfc00eb1730303f92c36fd47b1758cca91988413803/stleary/JSON-java/issues/126 |
| og:image:alt | Following test-code will not produce expected results, the array-elements of type BigDecimal will be incorrectly quoted. I guess other Number types like BigInteger will fail too. Number[] foo = new... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | FritzMock |
| 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