René's URL Explorer Experiment


Title: warp of Sets of Enums is broken · Issue #255 · stleary/JSON-java · GitHub

Open Graph Title: warp of Sets of Enums is broken · Issue #255 · stleary/JSON-java

X Title: warp of Sets of Enums is broken · Issue #255 · stleary/JSON-java

Description: When I use an Enum with a "getter"-method and put this value into a set and this set as a value of a JSONObject the String representation of the Enum is not the same as when I put the Enum directly as a value of the JSONObject. This issu...

Open Graph Description: When I use an Enum with a "getter"-method and put this value into a set and this set as a value of a JSONObject the String representation of the Enum is not the same as when I put the Enum directly...

X Description: When I use an Enum with a "getter"-method and put this value into a set and this set as a value of a JSONObject the String representation of the Enum is not the same as when I put the Enu...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"warp of Sets of Enums is broken","articleBody":"When I use an Enum with a \"getter\"-method and put this value into a set and this set as a value of a JSONObject the String representation of the Enum is not the same as when I put the Enum directly as a value of the JSONObject. This issue depends on the `wrap` method of JSONObject that is called when a JSONArray (used for the Set) is created from a collection.\n\nHere is an example.\n\n```\n    enum ToStringEnum{\n        a,\n        d(false);\n\n        private final boolean flag;\n\n        ToStringEnum() {\n            this(true);\n        }\n\n        ToStringEnum(boolean disabledOnDefault) {\n            this.flag = disabledOnDefault;\n        }\n\n        public boolean isFlag() {\n            return this.flag;\n        }\n    }\n\n    ToStringEnum a = ToStringEnum.a;\n    JSONObject object = new JSONObject();\n    Set\u003cToStringEnum> set = new HashSet\u003cToStringEnum>();\n    set.add(a);\n    object.put(\"testset\", set);\n    object.put(\"test\", a);\n    System.out.println(object.toString());\n    //result: {\"testset\":[{\"flag\":true}],\"test\":\"a\"}\n    //expected: {\"testset\":[\"a\"],\"test\":\"a\"}\n```\n","author":{"url":"https://github.com/Simulant87","@type":"Person","name":"Simulant87"},"datePublished":"2016-07-29T10:48:02Z","url":"https://github.com/stleary/JSON-java/issues/255"}

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:f84dc174-3b18-32dc-9acd-d8132c52ff1d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE324:30AF58:24B347F:32FF76E:6AFD35E7
html-safe-nonce88c4cb8c7a76eb7e90ee56944db8ea66a0440ba48ff40967662052a07f6bded5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMzI0OjMwQUY1ODoyNEIzNDdGOjMyRkY3NkU6NkFGRDM1RTciLCJ2aXNpdG9yX2lkIjoiODQyNjIxOTI2NjYyOTI1MjU4MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmaca94d3579aa7370489cc8bc12a2c6104d8ccb99352775d722fef03f86ac7d0240
hovercard-subject-tagissue:168299399
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/255/issue_layout
twitter:imagehttps://opengraph.githubassets.com/549fdc3d8689f18a8b52bc46b5c344cffd147e8b6bc9f4be052df23598e1ecbe/stleary/JSON-java/issues/255
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/549fdc3d8689f18a8b52bc46b5c344cffd147e8b6bc9f4be052df23598e1ecbe/stleary/JSON-java/issues/255
og:image:altWhen I use an Enum with a "getter"-method and put this value into a set and this set as a value of a JSONObject the String representation of the Enum is not the same as when I put the Enum directly...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameSimulant87
hostnamegithub.com
expected-hostnamegithub.com
None065128366c233a9d57ff68ab6c96e25b99dd1b0ab70d23b70873d3dd6b5e4f19
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
release941021edf0c2ec58298f4a2c8f27ae507d129c92
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/stleary/JSON-java/issues/255#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fstleary%2FJSON-java%2Fissues%2F255
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fstleary%2FJSON-java%2Fissues%2F255
Sign uphttps://github.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://github.com/stleary/JSON-java/issues/255
Reloadhttps://github.com/stleary/JSON-java/issues/255
Reloadhttps://github.com/stleary/JSON-java/issues/255
stlearyhttps://github.com/stleary
JSON-javahttps://github.com/stleary/JSON-java
Codehttps://github.com/stleary/JSON-java
Issues19 (19)https://github.com/stleary/JSON-java/issues
Pull requestshttps://github.com/stleary/JSON-java/pulls
Actionshttps://github.com/stleary/JSON-java/actions
Projectshttps://github.com/stleary/JSON-java/projects
Wikihttps://github.com/stleary/JSON-java/wiki
Security and quality1 (1)https://github.com/stleary/JSON-java/security
Insightshttps://github.com/stleary/JSON-java/pulse
https://github.com/stleary/JSON-java
New issuehttps://github.com/login?return_to=https://github.com/stleary/JSON-java/issues/255
New issuehttps://github.com/login?return_to=https://github.com/stleary/JSON-java/issues/255
warp of Sets of Enums is brokenhttps://github.com/stleary/JSON-java/issues/255#top
https://github.com/Simulant87
Simulant87https://github.com/Simulant87
on Jul 29, 2016https://github.com/stleary/JSON-java/issues/255#issue-168299399
https://github.com/stleary
stlearyhttps://github.com/stleary
on Aug 6, 2016https://github.com/stleary/JSON-java/issues/255#issuecomment-238008766
https://github.com/stleary/JSON-Java-unit-test/blob/master/src/test/java/org/json/junit/EnumTest.javahttps://github.com/stleary/JSON-Java-unit-test/blob/master/src/test/java/org/json/junit/EnumTest.java
stlearyhttps://github.com/stleary
completedhttps://github.com/stleary/JSON-java/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Aug 11, 2016https://github.com/stleary/JSON-java/issues/255#event-752217089
https://github.com/johnjaylward
johnjaylwardhttps://github.com/johnjaylward
on Aug 11, 2016https://github.com/stleary/JSON-java/issues/255#issuecomment-239189954
@stlearyhttps://github.com/stleary
Sign up for freehttps://github.com/signup?return_to=https://github.com/stleary/JSON-java/issues/255
Sign in to commenthttps://github.com/login?return_to=https://github.com/stleary/JSON-java/issues/255
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.