René's URL Explorer Experiment


Title: `ConvertTo-Json`: terminate cut off branches with a ellipsis string rather than a full (.Net) type name · Issue #8381 · PowerShell/PowerShell · GitHub

Open Graph Title: `ConvertTo-Json`: terminate cut off branches with a ellipsis string rather than a full (.Net) type name · Issue #8381 · PowerShell/PowerShell

X Title: `ConvertTo-Json`: terminate cut off branches with a ellipsis string rather than a full (.Net) type name · Issue #8381 · PowerShell/PowerShell

Description: This enhancement request is related to: Make ConvertTo-Json detect circular references In ConvertTo-Json the max allowed depth is 100. However, we should add code to dynamically check if we are running out of stack, and serialize objects...

Open Graph Description: This enhancement request is related to: Make ConvertTo-Json detect circular references In ConvertTo-Json the max allowed depth is 100. However, we should add code to dynamically check if we are run...

X Description: This enhancement request is related to: Make ConvertTo-Json detect circular references In ConvertTo-Json the max allowed depth is 100. However, we should add code to dynamically check if we are run...

Opengraph URL: https://github.com/PowerShell/PowerShell/issues/8381

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`ConvertTo-Json`: terminate cut off branches with a ellipsis string  rather than a full (.Net) type name","articleBody":"This enhancement request is related to:\r\n[Make ConvertTo-Json detect circular references](https://github.com/PowerShell/PowerShell/issues/6638)\r\n[In ConvertTo-Json the max allowed depth is 100. However, we should add code to dynamically check if we are running out of stack, and serialize objects with bigger depths](\r\nhttps://github.com/PowerShell/PowerShell/issues/3181)\r\n\r\nApparently almost every programmer goes through the pitfall of the default limited `-Depth` of the `ConvertTo-Json` cmdlet,\r\nSee  Sackoverflow: [Unexpected ConvertTo-Json results? Answer: it has a default -Depth of 2](https://stackoverflow.com/questions/53583677/unexpected-convertto-json-results-answer-it-has-a-default-depth-of-2)\r\n\r\nI guess this goes along with the fact that  `ConvertTo-Json` terminates branches that are deeper than the default `-Depth` (2) with a (.Net) full type name. Therefore programmers assume a bug or a cmdlet limitation and do not read the help or about. \r\nTo my opinion, adding a full type name to a terminated branch doesn’t add much value, knowing that:\r\n- Json hardly preserves any (.Net) type names at all\r\n- You can’t rebuild the object from the type name without its data.\r\n\r\nMeaning, that a simple [ellipsis]( https://en.wikipedia.org/wiki/Ellipsis) (three dots: `...`) at the end of the cut off branch could suffice and have a clearer meaning that indicates an *intentional* omission of additional child properties.\r\n\r\nDefinition of an ellipsis (from [Wikipedia]( https://en.wikipedia.org/wiki/Ellipsis)):\r\n\r\n\u003e An ellipsis (plural ellipses; from the Ancient Greek: ἔλλειψις, élleipsis, 'omission' or 'falling short') is a series of dots (typically three, such as `…`) that usually indicates an intentional omission of a word, sentence, or whole section from a text without altering its original meaning.\r\n\r\nFor compatibility, I would not use the Unicode ellipses character  (U+2026) but simply 3 (ascii) dots: …\r\n\r\nTaken the following commands:\r\n```\r\n$Test = @{Guid = New-Guid}\r\n$Test.Parent = $Test\r\n$Test | ConvertTo-Json\r\n```\r\nIn stead of producing:\r\n```\r\n{\r\n    \"Guid\":  \"a274d017-5188-4d91-b960-023c06159dcc\",\r\n    \"Parent\":  {\r\n                   \"Guid\":  \"a274d017-5188-4d91-b960-023c06159dcc\",\r\n                   \"Parent\":  {\r\n                                  \"Guid\":  \"a274d017-5188-4d91-b960-023c06159dcc\",\r\n                                  \"Parent\":  \"System.Collections.Hashtable\"\r\n                              }\r\n               }\r\n}\r\n```\r\nIt should produce:\r\n```\r\n{\r\n    \"Guid\":  \"a274d017-5188-4d91-b960-023c06159dcc\",\r\n    \"Parent\":  {\r\n                   \"Guid\":  \"a274d017-5188-4d91-b960-023c06159dcc\",\r\n                   \"Parent\":  {\r\n                                  \"Guid\":  \"a274d017-5188-4d91-b960-023c06159dcc\",\r\n                                  \"Parent\":  \"...\"\r\n                              }\r\n               }\r\n}\r\n```","author":{"url":"https://github.com/iRon7","@type":"Person","name":"iRon7"},"datePublished":"2018-12-02T18:40:45.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/8381/PowerShell/issues/8381"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:f51f9ad7-0120-0a7f-becf-136713f60c33
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idAE24:10A69F:484090:6116ED:6A553E6D
html-safe-noncebc24363d5baa754c7da9d998cd343182ee885e27e094cc48171dfa4c930256c9
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRTI0OjEwQTY5Rjo0ODQwOTA6NjExNkVEOjZBNTUzRTZEIiwidmlzaXRvcl9pZCI6IjYxMjMwMDU5NzU2ODU1NzgzNDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacfbe0b7a25d73a1b7b02e79e7a128994660a4c9034969e5a5ec89ebeecd102786
hovercard-subject-tagissue:386586672
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/PowerShell/PowerShell/8381/issue_layout
twitter:imagehttps://opengraph.githubassets.com/e9130759b93cf58414891d63c396baa8c54d0324f0809835791b0f9f8ed8c42c/PowerShell/PowerShell/issues/8381
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e9130759b93cf58414891d63c396baa8c54d0324f0809835791b0f9f8ed8c42c/PowerShell/PowerShell/issues/8381
og:image:altThis enhancement request is related to: Make ConvertTo-Json detect circular references In ConvertTo-Json the max allowed depth is 100. However, we should add code to dynamically check if we are run...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameiRon7
hostnamegithub.com
expected-hostnamegithub.com
Nonecd9eea424140838b22e9eabd53d92b5702617ddd6d76efcd3a37f08d44309ca5
turbo-cache-controlno-preview
go-importgithub.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git
octolytics-dimension-user_id11524380
octolytics-dimension-user_loginPowerShell
octolytics-dimension-repository_id49609581
octolytics-dimension-repository_nwoPowerShell/PowerShell
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id49609581
octolytics-dimension-repository_network_root_nwoPowerShell/PowerShell
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
release3084b9f587e8f1e19803bbe0c77ac77ce3c99c5c
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/PowerShell/PowerShell/issues/8381#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fissues%2F8381
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fissues%2F8381
Sign up https://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=PowerShell%2FPowerShell
Reloadhttps://github.com/PowerShell/PowerShell/issues/8381
Reloadhttps://github.com/PowerShell/PowerShell/issues/8381
Reloadhttps://github.com/PowerShell/PowerShell/issues/8381
Please reload this pagehttps://github.com/PowerShell/PowerShell/issues/8381
PowerShell https://github.com/PowerShell
PowerShellhttps://github.com/PowerShell/PowerShell
Notifications https://github.com/login?return_to=%2FPowerShell%2FPowerShell
Fork 8.4k https://github.com/login?return_to=%2FPowerShell%2FPowerShell
Star 54.4k https://github.com/login?return_to=%2FPowerShell%2FPowerShell
Code https://github.com/PowerShell/PowerShell
Issues 1.2k https://github.com/PowerShell/PowerShell/issues
Pull requests 287 https://github.com/PowerShell/PowerShell/pulls
Discussions https://github.com/PowerShell/PowerShell/discussions
Actions https://github.com/PowerShell/PowerShell/actions
Projects https://github.com/PowerShell/PowerShell/projects
Security and quality 3 https://github.com/PowerShell/PowerShell/security
Insights https://github.com/PowerShell/PowerShell/pulse
Code https://github.com/PowerShell/PowerShell
Issues https://github.com/PowerShell/PowerShell/issues
Pull requests https://github.com/PowerShell/PowerShell/pulls
Discussions https://github.com/PowerShell/PowerShell/discussions
Actions https://github.com/PowerShell/PowerShell/actions
Projects https://github.com/PowerShell/PowerShell/projects
Security and quality https://github.com/PowerShell/PowerShell/security
Insights https://github.com/PowerShell/PowerShell/pulse
ConvertTo-Json: terminate cut off branches with a ellipsis string rather than a full (.Net) type namehttps://github.com/PowerShell/PowerShell/issues/8381#top
Breaking-Changebreaking change that may affect usershttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Breaking-Change%22
Committee-ReviewedPS-Committee has reviewed this and made a decisionhttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Committee-Reviewed%22
Issue-Enhancementthe issue is more of a feature request than a bughttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Issue-Enhancement%22
Resolution-By DesignThe reported behavior is by design.https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Resolution-By%20Design%22
WG-Cmdlets-Utilitycmdlets in the Microsoft.PowerShell.Utility modulehttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22WG-Cmdlets-Utility%22
https://github.com/iRon7
iRon7https://github.com/iRon7
on Dec 2, 2018https://github.com/PowerShell/PowerShell/issues/8381#issue-386586672
Make ConvertTo-Json detect circular referenceshttps://github.com/PowerShell/PowerShell/issues/6638
In ConvertTo-Json the max allowed depth is 100. However, we should add code to dynamically check if we are running out of stack, and serialize objects with bigger depthshttps://github.com/PowerShell/PowerShell/issues/3181
Unexpected ConvertTo-Json results? Answer: it has a default -Depth of 2https://stackoverflow.com/questions/53583677/unexpected-convertto-json-results-answer-it-has-a-default-depth-of-2
ellipsishttps://en.wikipedia.org/wiki/Ellipsis
Wikipediahttps://en.wikipedia.org/wiki/Ellipsis
Breaking-Changebreaking change that may affect usershttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Breaking-Change%22
Committee-ReviewedPS-Committee has reviewed this and made a decisionhttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Committee-Reviewed%22
Issue-Enhancementthe issue is more of a feature request than a bughttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Issue-Enhancement%22
Resolution-By DesignThe reported behavior is by design.https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Resolution-By%20Design%22
WG-Cmdlets-Utilitycmdlets in the Microsoft.PowerShell.Utility modulehttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22WG-Cmdlets-Utility%22
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.