Title: Change the structure of object reference for the json logger · Issue #5 · moosetechnology/JavaCallStackExtractor · GitHub
Open Graph Title: Change the structure of object reference for the json logger · Issue #5 · moosetechnology/JavaCallStackExtractor
X Title: Change the structure of object reference for the json logger · Issue #5 · moosetechnology/JavaCallStackExtractor
Description: The issue is with how object references are currently logged, meaning StringReference, ArrayReference, and ClassReference For example, for an array reference, the current JSON structure looks like this: "reference": { "type": "java.lang....
Open Graph Description: The issue is with how object references are currently logged, meaning StringReference, ArrayReference, and ClassReference For example, for an array reference, the current JSON structure looks like ...
X Description: The issue is with how object references are currently logged, meaning StringReference, ArrayReference, and ClassReference For example, for an array reference, the current JSON structure looks like ...
Opengraph URL: https://github.com/moosetechnology/JavaCallStackExtractor/issues/5
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Change the structure of object reference for the json logger","articleBody":"The issue is with how object references are currently logged, meaning StringReference, ArrayReference, and ClassReference\n\nFor example, for an array reference, the current JSON structure looks like this:\n```json\n\"reference\": {\n \"type\": \"java.lang.String[]\",\n \"uniqueId\": 72,\n \"refered\": {\n \"elements\": []\n }\n}\n```\n\n- reference being an object reference \n- refered can be : \n - the fields of a class reference\n - elements of an array reference\n - value of the String reference\nThis design makes it hard to quickly understand what kind of object we’re dealing with.\n\n**Proposal 1: Flatten the structure**\nInstead of having a generic \"reference\" object with a \"refered\" field, we can directly log the specific type of reference.\nExample for an array:\n```json\n\"ArrayReference\":{\n \"type\": \"java.lang.String[]\",\n \"uniqueId\": 72,\n \"elements\": []\n}\n```\nThis way, there’s no extra “wrapper” for all ObjectReference types.\n\n**Proposal 2: Keep a wrapper but be explicit**\nIf we still want a generic ObjectReference container, we can make the type explicit inside it:\n\n```json\n\"ObjectReference\":{ \n \"type\": \"java.lang.String[]\",\n \"uniqueId\": 72,\n \"ArrayReference\":{\n \"elements\": []\n }\n}\n```\n\nThis option could be helpfull for the importer for FamixCallStack, but is less space efficient for the outputted file","author":{"url":"https://github.com/LeoDefossez","@type":"Person","name":"LeoDefossez"},"datePublished":"2025-08-11T12:04:40.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/5/JavaCallStackExtractor/issues/5"}
| 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:f26f56d2-c24b-e97f-5259-99b070d36159 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A1EE:1478A3:11CA7FE:18EA3AB:696A2FC6 |
| html-safe-nonce | 42206fc77a7e753a00c5ed37c9a8657169558738aec85cfdfc7770b876536cde |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMUVFOjE0NzhBMzoxMUNBN0ZFOjE4RUEzQUI6Njk2QTJGQzYiLCJ2aXNpdG9yX2lkIjoiNzQ0NjUxNjMxNDE4OTQ3NTc4MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 82b02feb169e5326cc00809f710a2e0780f74c067e8d7957b715fb3c22c82f6d |
| hovercard-subject-tag | issue:3309740067 |
| 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/moosetechnology/JavaCallStackExtractor/5/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c31849bcc568c557200b3a16ebf25e553d23f308342cded65c27c739fdc12c9b/moosetechnology/JavaCallStackExtractor/issues/5 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c31849bcc568c557200b3a16ebf25e553d23f308342cded65c27c739fdc12c9b/moosetechnology/JavaCallStackExtractor/issues/5 |
| og:image:alt | The issue is with how object references are currently logged, meaning StringReference, ArrayReference, and ClassReference For example, for an array reference, the current JSON structure looks like ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | LeoDefossez |
| hostname | github.com |
| expected-hostname | github.com |
| None | ade130928b3890d20ecf9c887468a17e88d5c9a740ea2a85c2c2162e7c58e623 |
| turbo-cache-control | no-preview |
| go-import | github.com/moosetechnology/JavaCallStackExtractor git https://github.com/moosetechnology/JavaCallStackExtractor.git |
| octolytics-dimension-user_id | 13623321 |
| octolytics-dimension-user_login | moosetechnology |
| octolytics-dimension-repository_id | 1013615922 |
| octolytics-dimension-repository_nwo | moosetechnology/JavaCallStackExtractor |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1013615922 |
| octolytics-dimension-repository_network_root_nwo | moosetechnology/JavaCallStackExtractor |
| 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 | c00842167ca2e5b13e8171812965d503e925ece6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width