Title: Suggestion: Add more constructors with parameters for JSONParserConfiguration · Issue #939 · stleary/JSON-java · GitHub
Open Graph Title: Suggestion: Add more constructors with parameters for JSONParserConfiguration · Issue #939 · stleary/JSON-java
X Title: Suggestion: Add more constructors with parameters for JSONParserConfiguration · Issue #939 · stleary/JSON-java
Description: to me it was counter intuitive to create a default configured JSONParserConfiguration to then call withStrictMode() on it returning a clone and making the first instance obsolete. I would even need to create multiple clones until I have ...
Open Graph Description: to me it was counter intuitive to create a default configured JSONParserConfiguration to then call withStrictMode() on it returning a clone and making the first instance obsolete. I would even need...
X Description: to me it was counter intuitive to create a default configured JSONParserConfiguration to then call withStrictMode() on it returning a clone and making the first instance obsolete. I would even need...
Opengraph URL: https://github.com/stleary/JSON-java/issues/939
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Suggestion: Add more constructors with parameters for JSONParserConfiguration","articleBody":"to me it was counter intuitive to create a default configured `JSONParserConfiguration` to then call `withStrictMode()` on it returning a clone and making the first instance obsolete. I would even need to create multiple clones until I have the correct configuration, when I want to set multiple values. I would like to be able to create my desired configuration in one go.\r\n\r\nThis would require a Constructor `JSONParserConfiguration(boolean overwriteDuplicateKey, boolean strictMode)` or even `JSONParserConfiguration(boolean overwriteDuplicateKey, boolean strictMode, boolean keepStrings, int maxNestingDepth)`.\r\n\r\nI would also allow the make the configuration fiels `final` although that would be a backwards compatible breaking change, and therefore will most probably not be added. I would make it reasier to reason about the codes behaviour and avoid the potential of changing an already used configuration.\r\n\r\nWhat do you think of it?","author":{"url":"https://github.com/Simulant87","@type":"Person","name":"Simulant87"},"datePublished":"2025-01-11T21:31:44.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/939/JSON-java/issues/939"}
| 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:f292b9b6-1677-4b34-6aa1-c910655f1e5f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AA12:31608E:83CEDA0:AF7E5D4:696E0917 |
| html-safe-nonce | 40f3acccb3c6571557605f29a9d036c488b75b3710a93d1ed1a9bbfe51fb25db |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQTEyOjMxNjA4RTo4M0NFREEwOkFGN0U1RDQ6Njk2RTA5MTciLCJ2aXNpdG9yX2lkIjoiNjkyOTk2NTYyNjkwNjUxMTYzOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 8d973f136b1af6a3fd2b2956f5750d038bf1578db199c0b87f8834cefc44950e |
| hovercard-subject-tag | issue:2782154925 |
| 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/939/issue_layout |
| twitter:image | https://opengraph.githubassets.com/871de12f36a8251208b64f3f29bdebe70a82bff0f27c58bcde00cd124261693c/stleary/JSON-java/issues/939 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/871de12f36a8251208b64f3f29bdebe70a82bff0f27c58bcde00cd124261693c/stleary/JSON-java/issues/939 |
| og:image:alt | to me it was counter intuitive to create a default configured JSONParserConfiguration to then call withStrictMode() on it returning a clone and making the first instance obsolete. I would even need... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Simulant87 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0b1760aa20e1a810eba6245d04e3885be7363dfe08d08b61f605c852359472e0 |
| 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 | 84090305cd10c2b140bf307f69f57f0892b4f215 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width