René's URL Explorer Experiment


Title: JSONObject.wrap does not handle enums · Issue #145 · stleary/JSON-java · GitHub

Open Graph Title: JSONObject.wrap does not handle enums · Issue #145 · stleary/JSON-java

X Title: JSONObject.wrap does not handle enums · Issue #145 · stleary/JSON-java

Description: Steps to reproduce: Create a new JSONObject(); try to add an enum as a value dump the jsonObject via the toString() method expected: we see the enum values actual: we do not see the enum values Please see below stack. It seems that the J...

Open Graph Description: Steps to reproduce: Create a new JSONObject(); try to add an enum as a value dump the jsonObject via the toString() method expected: we see the enum values actual: we do not see the enum values Ple...

X Description: Steps to reproduce: Create a new JSONObject(); try to add an enum as a value dump the jsonObject via the toString() method expected: we see the enum values actual: we do not see the enum values Ple...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"JSONObject.wrap does not handle enums","articleBody":"Steps to reproduce:\nCreate a new JSONObject();\ntry to add an enum as a value\ndump the jsonObject via the toString() method\n\nexpected:\nwe see the enum values\n\nactual:\nwe do not see the enum values\n\nPlease see below stack. It seems that the JSONObject.wrap function fails to recognize the enum and tries to use the bean constructor from the JSONObject class. My enum does not have getters/setters like (since it is not a bean) and so nothing gets dumped from the toString()\n\nJSONObject.wrap(Object) line: 1730  \nJSONArray.\u003cinit>(Collection\u003cObject>) line: 159  \nJSONObject.writeValue(Writer, Object, int, int) line: 1767  \nJSONObject.write(Writer, int, int) line: 1836  \nJSONObject.toString(int) line: 1614 \nJSONObject.toString() line: 1591  \nJSONOutputRenderer.buildVariantsArray(Set\u003cVariantInfo>) line: 100  \nJSONOutputRenderer.getJson(BuildInfo) line: 83  \nJSONOutputRenderer.generateBuildInfo(String, BuildInfo) line: 50  \nGenBuildOutputHandlerMain.outputBuildInfo(String, BuildInfo) line: 24  \nGenBuildOutputHandlerMain.processFile(String) line: 18  \nGenBuildOutputHandlerMain.main(String[]) line: 34\n\nI have pulled the latest source and built the following suggestion to fix the bug:\n\nAdded at line 1722 of JSONObject.java\n            if(object instanceof Enum){\n                return object.toString();\n            }\n","author":{"url":"https://github.com/twoseascharlie","@type":"Person","name":"twoseascharlie"},"datePublished":"2015-08-09T18:43:23Z","url":"https://github.com/stleary/JSON-java/issues/145"}

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:b6bc861d-29c6-68b3-5d50-c656d45bffa5
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9554:16C639:2CBCDF:3B45A7:6AFD35E6
html-safe-nonce8a2aaa66d9b75ef77bf50aaf2a07ec6f54288109306d8266d6dddee449d888d9
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NTU0OjE2QzYzOToyQ0JDREY6M0I0NUE3OjZBRkQzNUU2IiwidmlzaXRvcl9pZCI6IjIzOTQwOTIwNTUyMDE4NDgwNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac04a892c81bed8375be78081d0b83729bf35b1ca1356e6d475551dabb7251bc2c
hovercard-subject-tagissue:99918867
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/145/issue_layout
twitter:imagehttps://opengraph.githubassets.com/db82fc60289cfebc0cc7ee0e62b0b8a05d9c79fde6bfaf022ec012fb17e3105c/stleary/JSON-java/issues/145
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/db82fc60289cfebc0cc7ee0e62b0b8a05d9c79fde6bfaf022ec012fb17e3105c/stleary/JSON-java/issues/145
og:image:altSteps to reproduce: Create a new JSONObject(); try to add an enum as a value dump the jsonObject via the toString() method expected: we see the enum values actual: we do not see the enum values Ple...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernametwoseascharlie
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/145#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fstleary%2FJSON-java%2Fissues%2F145
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%2F145
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/145
Reloadhttps://github.com/stleary/JSON-java/issues/145
Reloadhttps://github.com/stleary/JSON-java/issues/145
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/145
New issuehttps://github.com/login?return_to=https://github.com/stleary/JSON-java/issues/145
JSONObject.wrap does not handle enumshttps://github.com/stleary/JSON-java/issues/145#top
https://github.com/twoseascharlie
twoseascharliehttps://github.com/twoseascharlie
on Aug 9, 2015https://github.com/stleary/JSON-java/issues/145#issue-99918867
https://github.com/stleary
stlearyhttps://github.com/stleary
on Aug 10, 2015https://github.com/stleary/JSON-java/issues/145#issuecomment-129286135
#127https://github.com/stleary/JSON-java/pull/127
https://github.com/twoseascharlie
twoseascharliehttps://github.com/twoseascharlie
on Aug 12, 2015https://github.com/stleary/JSON-java/issues/145#issuecomment-130418367
https://github.com/stleary
stlearyhttps://github.com/stleary
on Aug 15, 2015https://github.com/stleary/JSON-java/issues/145#issuecomment-131459333
https://github.com/stleary/JSON-Java-unit-test/blob/master/EnumTest.javahttps://github.com/stleary/JSON-Java-unit-test/blob/master/EnumTest.java
stlearyhttps://github.com/stleary
completedhttps://github.com/stleary/JSON-java/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Aug 15, 2015https://github.com/stleary/JSON-java/issues/145#event-383401171
Sign up for freehttps://github.com/signup?return_to=https://github.com/stleary/JSON-java/issues/145
Sign in to commenthttps://github.com/login?return_to=https://github.com/stleary/JSON-java/issues/145
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.