René's URL Explorer Experiment


Title: Breaking Change: JSONC no longer works after 7.4.0 · Issue #20782 · PowerShell/PowerShell · GitHub

Open Graph Title: Breaking Change: JSONC no longer works after 7.4.0 · Issue #20782 · PowerShell/PowerShell

X Title: Breaking Change: JSONC no longer works after 7.4.0 · Issue #20782 · PowerShell/PowerShell

Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerShell 5.1 and PowerShell. Steps to reprodu...

Open Graph Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh...

X Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Breaking Change: JSONC no longer works after 7.4.0","articleBody":"### Prerequisites\n\n- [X] Write a descriptive title.\n- [X] Make sure you are able to repro it on the [latest released version](https://github.com/PowerShell/PowerShell/releases)\n- [X] Search the existing issues.\n- [X] Refer to the [FAQ](https://github.com/PowerShell/PowerShell/blob/master/docs/FAQ.md).\n- [X] Refer to [Differences between Windows PowerShell 5.1 and PowerShell](https://learn.microsoft.com/powershell/scripting/whats-new/differences-from-windows-powershell).\n\n### Steps to reproduce\n\nInclude a comment in json, one example can be seen here:\r\n\r\n```\r\n'{\r\n    // A Json comment\r\n    \"string\": \"test\"\r\n}' | Test-Json\r\n```\r\n\r\nIn previous versions of PS this worked as expected. \n\n### Expected behavior\n\n```console\nPS\u003e '{\r\n    // A Json comment\r\n    \"string\": \"test\"\r\n}' | Test-Json\r\nTrue\n```\n\n\n### Actual behavior\n\n```console\nPS\u003e '{\r\n    // A Json comment\r\n    \"string\": \"test\"\r\n}' | Test-Json\r\n\r\nTest-Json: Cannot parse the JSON\n```\n\n\n### Error details\n\n```console\nException             : \r\n    Type           : System.Exception\r\n    Message        : Cannot parse the JSON.\r\n    InnerException : \r\n        Type               : System.Text.Json.JsonReaderException\r\n        LineNumber         : 1\r\n        BytePositionInLine : 4\r\n        Message            : '/' is invalid after a value. Expected either ',', '}', or ']'. LineNumber: 1 | BytePositionInLine: 4.\r\n        TargetSite         : \r\n            Name          : ThrowJsonReaderException\r\n            DeclaringType : System.Text.Json.ThrowHelper, System.Text.Json, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51\r\n            MemberType    : Method\r\n            Module        : System.Text.Json.dll\r\n        Source             : System.Text.Json\r\n        HResult            : -2146233088\r\n        StackTrace         : \r\n   at System.Text.Json.ThrowHelper.ThrowJsonReaderException(Utf8JsonReader\u0026 json, ExceptionResource resource, Byte nextByte, ReadOnlySpan`1 bytes)\r\n   at System.Text.Json.Utf8JsonReader.ConsumeNextToken(Byte marker)\r\n   at System.Text.Json.Utf8JsonReader.ConsumeNextTokenOrRollback(Byte marker)\r\n   at System.Text.Json.Utf8JsonReader.ReadSingleSegment()\r\n   at System.Text.Json.Utf8JsonReader.Read()\r\n   at System.Text.Json.JsonDocument.Parse(ReadOnlySpan`1 utf8JsonSpan, JsonReaderOptions readerOptions, MetadataDb\u0026 database, StackRowStack\u0026 stack)\r\n   at System.Text.Json.JsonDocument.ParseUnrented(ReadOnlyMemory`1 utf8Json, JsonReaderOptions readerOptions, JsonTokenType tokenType)\r\n   at System.Text.Json.JsonDocument.ParseValue(ReadOnlyMemory`1 json, JsonDocumentOptions options)\r\n   at System.Text.Json.Nodes.JsonNode.Parse(String json, Nullable`1 nodeOptions, JsonDocumentOptions documentOptions)\r\n   at Microsoft.PowerShell.Commands.TestJsonCommand.ProcessRecord()\r\n    HResult        : -2146233088\r\nTargetObject          : {\r\n    // A Json comment\r\n    \"string\": \"test\"\r\n}\r\nCategoryInfo          : InvalidData: ({\r\n    // A Json com… \"string\": \"test\"\r\n}:String) [Test-Json], Exception\r\nFullyQualifiedErrorId : InvalidJson,Microsoft.PowerShell.Commands.TestJsonCommand\r\nInvocationInfo        : \r\n    MyCommand        : Test-Json\r\n    ScriptLineNumber : 4\r\n    OffsetInLine     : 6\r\n    HistoryId        : 4\r\n    Line             : }' | Test-Json\r\n    Statement        : Test-Json\r\n    PositionMessage  : At line:4 char:6\r\n                       + }' | Test-Json\r\n                       +      ~~~~~~~~~\r\n    InvocationName   : Test-Json\r\n    CommandOrigin    : Internal\r\nScriptStackTrace      : at \u003cScriptBlock\u003e, \u003cNo file\u003e: line 1\r\nPipelineIterationInfo :\n```\n\n\n### Environment data\n\n```powershell\nName                           Value\r\n----                           -----\r\nPSVersion                      7.4.0\r\nPSEdition                      Core\r\nGitCommitId                    7.4.0\r\nOS                             Microsoft Windows 10.0.19045\r\nPlatform                       Win32NT\r\nPSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}\r\nPSRemotingProtocolVersion      2.3\r\nSerializationVersion           1.1.0.1\r\nWSManStackVersion              3.0\n```\n\n\n### Visuals\n\n![image](https://github.com/PowerShell/PowerShell/assets/112668616/d21d800a-5d02-4153-80da-73d98a22ee3e)\r\n![image](https://github.com/PowerShell/PowerShell/assets/112668616/0f64d753-3be8-495f-b084-0d8b17b1201b)\r\n","author":{"url":"https://github.com/kyle-ntx","@type":"Person","name":"kyle-ntx"},"datePublished":"2023-11-27T01:37:28.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":21},"url":"https://github.com/20782/PowerShell/issues/20782"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:7dd23474-ea9e-939f-d2da-f5618eaaff57
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE98A:2BEEEA:EDEE4A:1423F01:6A5567CE
html-safe-nonce378d76f2dc6844edbe289d441e4a6d6a160eec9d4402f6c535092ebedc155654
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOThBOjJCRUVFQTpFREVFNEE6MTQyM0YwMTo2QTU1NjdDRSIsInZpc2l0b3JfaWQiOiIzMDYzMjE1Mjc1MTA3NTUyNzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac9ad35983212b032e5dad3b4444f0aab13e99bcf6881602c92523047cbaa4a5ce
hovercard-subject-tagissue:2011331982
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/20782/issue_layout
twitter:imagehttps://opengraph.githubassets.com/5956af0b94ad5f88edc351e9971ee11049f0a3d51a4cdda31d0d8e60c5f8509b/PowerShell/PowerShell/issues/20782
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5956af0b94ad5f88edc351e9971ee11049f0a3d51a4cdda31d0d8e60c5f8509b/PowerShell/PowerShell/issues/20782
og:image:altPrerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamekyle-ntx
hostnamegithub.com
expected-hostnamegithub.com
Noneb5665c84831ed9ac4fb79519c16c9c5580ba8092fb8bb6e3e72972ec7197348e
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
release8201d0b7bc32164c4662de52242e463a356df543
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/PowerShell/PowerShell/issues/20782#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fissues%2F20782
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%2F20782
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/20782
Reloadhttps://github.com/PowerShell/PowerShell/issues/20782
Reloadhttps://github.com/PowerShell/PowerShell/issues/20782
Please reload this pagehttps://github.com/PowerShell/PowerShell/issues/20782
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
#23817https://github.com/PowerShell/PowerShell/pull/23817
Breaking Change: JSONC no longer works after 7.4.0https://github.com/PowerShell/PowerShell/issues/20782#top
#23817https://github.com/PowerShell/PowerShell/pull/23817
In-PRIndicates that a PR is out for the issuehttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22In-PR%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
Up-for-GrabsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorshttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Up-for-Grabs%22
WG-Cmdlets-Corecmdlets in the Microsoft.PowerShell.Core modulehttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22WG-Cmdlets-Core%22
WG-ReviewedA Working Group has reviewed this and made a recommendationhttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22WG-Reviewed%22
https://github.com/kyle-ntx
kyle-ntxhttps://github.com/kyle-ntx
on Nov 27, 2023https://github.com/PowerShell/PowerShell/issues/20782#issue-2011331982
latest released versionhttps://github.com/PowerShell/PowerShell/releases
FAQhttps://github.com/PowerShell/PowerShell/blob/master/docs/FAQ.md
Differences between Windows PowerShell 5.1 and PowerShellhttps://learn.microsoft.com/powershell/scripting/whats-new/differences-from-windows-powershell
https://private-user-images.githubusercontent.com/112668616/285698078-d21d800a-5d02-4153-80da-73d98a22ee3e.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODM5ODIzMzAsIm5iZiI6MTc4Mzk4MjAzMCwicGF0aCI6Ii8xMTI2Njg2MTYvMjg1Njk4MDc4LWQyMWQ4MDBhLTVkMDItNDE1My04MGRhLTczZDk4YTIyZWUzZS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwNzEzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDcxM1QyMjMzNTBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT04ZjY3MWJmYmY3OWU5MGZkMjhjNmU5ZDNhNTY0YzZhOTM3YzdkZTVlNzA5N2ZiYmMxMDIyNTVhZGQxZTc1YWE0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZyZXNwb25zZS1jb250ZW50LXR5cGU9aW1hZ2UlMkZwbmcifQ.Xlzi2KLebh6mqoUIVxgiALq8BuZRPSzLPQ1EK9dmKPU
https://private-user-images.githubusercontent.com/112668616/285699246-0f64d753-3be8-495f-b084-0d8b17b1201b.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODM5ODIzMzAsIm5iZiI6MTc4Mzk4MjAzMCwicGF0aCI6Ii8xMTI2Njg2MTYvMjg1Njk5MjQ2LTBmNjRkNzUzLTNiZTgtNDk1Zi1iMDg0LTBkOGIxN2IxMjAxYi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwNzEzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDcxM1QyMjMzNTBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iM2M2ZjMyODQwNjAzZTllOWJjY2YxNjhkZjhmMTAxM2M5MzYyMGZjODA5NTIwNWMwYzFmOWZlZjBkNzkzMjYxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZyZXNwb25zZS1jb250ZW50LXR5cGU9aW1hZ2UlMkZwbmcifQ.PonthrMEU0Ury4XdR_bNvnRh8gfumEHDWG2DB_trLa8
In-PRIndicates that a PR is out for the issuehttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22In-PR%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
Up-for-GrabsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorshttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Up-for-Grabs%22
WG-Cmdlets-Corecmdlets in the Microsoft.PowerShell.Core modulehttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22WG-Cmdlets-Core%22
WG-ReviewedA Working Group has reviewed this and made a recommendationhttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22WG-Reviewed%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.