René's URL Explorer Experiment


Title: Fix Test-Json not handling non-object types at root by dkaszews · Pull Request #17741 · PowerShell/PowerShell · GitHub

Open Graph Title: Fix Test-Json not handling non-object types at root by dkaszews · Pull Request #17741 · PowerShell/PowerShell

X Title: Fix Test-Json not handling non-object types at root by dkaszews · Pull Request #17741 · PowerShell/PowerShell

Description: PowerShell for every system! Contribute to PowerShell/PowerShell development by creating an account on GitHub.

Open Graph Description: PR Summary Test-Json incorrectly parsed JSON as JObject, which failed if the root type was not an object, but array, string, number, etc. @mklement0 suggested to change it to JToken which matches ...

X Description: PR Summary Test-Json incorrectly parsed JSON as JObject, which failed if the root type was not an object, but array, string, number, etc. @mklement0 suggested to change it to JToken which matches ...

Opengraph URL: https://github.com/PowerShell/PowerShell/pull/17741

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:6ddb4cbd-a612-5614-21bf-c23caf94b1c0
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9412:C4B40:1315FE9:1BC2058:6A54C36B
html-safe-nonce3d2764209f91329597155a196f5b290e5c7fcf100c54606270ee694f1cf722fc
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NDEyOkM0QjQwOjEzMTVGRTk6MUJDMjA1ODo2QTU0QzM2QiIsInZpc2l0b3JfaWQiOiI4MjUxMTQ0MTEwNjA3NDA5NzEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac0eca30904cb33f1af7ea03489623d98edb44decb2c8f1e192d4c54ba1c32584b
hovercard-subject-tagpull_request:1004731339
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/PowerShell/PowerShell/17741/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/b41e90acbac1b6423fc956234fcdb4d93f46f30cea1b97ac01eddfb29bbff345/PowerShell/PowerShell/pull/17741
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b41e90acbac1b6423fc956234fcdb4d93f46f30cea1b97ac01eddfb29bbff345/PowerShell/PowerShell/pull/17741
og:image:altPR Summary Test-Json incorrectly parsed JSON as JObject, which failed if the root type was not an object, but array, string, number, etc. @mklement0 suggested to change it to JToken which matches ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedkaszews
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
turbo-cache-controlno-cache
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
release69f9664dd5e7a82ba8ab1b4cb7f5a2f09333ab38
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/PowerShell/PowerShell/pull/17741#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fpull%2F17741
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%2Fpull%2F17741
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%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=PowerShell%2FPowerShell
Reloadhttps://github.com/PowerShell/PowerShell/pull/17741
Reloadhttps://github.com/PowerShell/PowerShell/pull/17741
Reloadhttps://github.com/PowerShell/PowerShell/pull/17741
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/17741
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.3k https://github.com/PowerShell/PowerShell/issues
Pull requests 288 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
iSazonovhttps://github.com/iSazonov
PowerShell:masterhttps://github.com/PowerShell/PowerShell/tree/master
Conversationhttps://github.com/PowerShell/PowerShell/pull/17741
Commits2 (2)https://github.com/PowerShell/PowerShell/pull/17741/commits
Checkshttps://github.com/PowerShell/PowerShell/pull/17741/checks
Files changedhttps://github.com/PowerShell/PowerShell/pull/17741/files
Fix Test-Json not handling non-object types at roothttps://github.com/PowerShell/PowerShell/pull/17741#top
iSazonovhttps://github.com/iSazonov
PowerShell:masterhttps://github.com/PowerShell/PowerShell/tree/master
https://github.com/dkaszews
dkaszewshttps://github.com/dkaszews
Jul 21, 2022https://github.com/PowerShell/PowerShell/pull/17741#issue-1313855155
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/17741
@mklement0https://github.com/mklement0
#11384https://github.com/PowerShell/PowerShell/issues/11384
JSON schemahttps://json-schema.org/
PR has a meaningful titlehttps://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission
Summarized changeshttps://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission
Make sure all .h, .cpp, .cs, .ps1 and .psm1 files have the correct copyright headerhttps://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission
Work in Progresshttps://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---work-in-progress
Breaking changeshttps://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#making-breaking-changes
Experimental feature(s) neededhttps://github.com/MicrosoftDocs/PowerShell-Docs/blob/main/reference/7.3/Microsoft.PowerShell.Core/About/about_Experimental_Features.md
Documentation neededhttps://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission
Make sure you've added a new test if existing tests do not effectively test the code changedhttps://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#before-submitting
PowerShell Editor Serviceshttps://github.com/PowerShell/PowerShellEditorServices
PowerShell extensionhttps://github.com/PowerShell/vscode-powershell
PSScriptAnalyzerhttps://github.com/PowerShell/PSScriptAnalyzer
EditorSyntaxhttps://github.com/PowerShell/EditorSyntax
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/17741
https://github.com/dkaszews
Fix Test-Json not handling non-object types at roothttps://github.com/PowerShell/PowerShell/pull/17741/commits/519ec516060b45a9a71190bac9b30fff4c220e5a
519ec51https://github.com/PowerShell/PowerShell/pull/17741/commits/519ec516060b45a9a71190bac9b30fff4c220e5a
https://github.com/dkaszews
dkaszewshttps://github.com/dkaszews
PaulHiginhttps://github.com/PaulHigin
code ownerhttps://github.com/PowerShell/PowerShell/blob/bff54ba38dd3c2dac6d2fe5ebbdfa87d79df312e/.github/CODEOWNERS#L33
July 21, 2022 22:04https://github.com/PowerShell/PowerShell/pull/17741#event-7041736737
TravisEz13https://github.com/TravisEz13
Jul 21, 2022https://github.com/PowerShell/PowerShell/pull/17741#event-7041737190
https://github.com/ghost
ghosthttps://github.com/ghost
Jul 21, 2022https://github.com/PowerShell/PowerShell/pull/17741#issuecomment-1191980715
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/17741
https://cla.opensource.microsoft.com/PowerShell/PowerShell?pullRequest=17741
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/17741
https://github.com/dkaszews
dkaszewshttps://github.com/dkaszews
Jul 21, 2022 https://github.com/PowerShell/PowerShell/pull/17741#pullrequestreview-1047189478
View reviewed changes https://github.com/PowerShell/PowerShell/pull/17741/files/519ec516060b45a9a71190bac9b30fff4c220e5a
test/powershell/Modules/Microsoft.PowerShell.Utility/Test-Json.Tests.ps1https://github.com/PowerShell/PowerShell/pull/17741/files/519ec516060b45a9a71190bac9b30fff4c220e5a#diff-bba498ea0379e8b955537ae7d01af03dc9c2b30cda1a3483a807b8459bb19e93
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/17741
https://github.com/dkaszews
dkaszewshttps://github.com/dkaszews
Jul 21, 2022 https://github.com/PowerShell/PowerShell/pull/17741#pullrequestreview-1047191659
View reviewed changes https://github.com/PowerShell/PowerShell/pull/17741/files/519ec516060b45a9a71190bac9b30fff4c220e5a
test/powershell/Modules/Microsoft.PowerShell.Utility/Test-Json.Tests.ps1https://github.com/PowerShell/PowerShell/pull/17741/files/519ec516060b45a9a71190bac9b30fff4c220e5a#diff-bba498ea0379e8b955537ae7d01af03dc9c2b30cda1a3483a807b8459bb19e93
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/17741
https://github.com/iSazonov
iSazonovhttps://github.com/iSazonov
Jul 22, 2022 https://github.com/PowerShell/PowerShell/pull/17741#pullrequestreview-1047445282
View reviewed changes https://github.com/PowerShell/PowerShell/pull/17741/files/519ec516060b45a9a71190bac9b30fff4c220e5a
test/powershell/Modules/Microsoft.PowerShell.Utility/Test-Json.Tests.ps1https://github.com/PowerShell/PowerShell/pull/17741/files/519ec516060b45a9a71190bac9b30fff4c220e5a#diff-bba498ea0379e8b955537ae7d01af03dc9c2b30cda1a3483a807b8459bb19e93
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/17741
test/powershell/Modules/Microsoft.PowerShell.Utility/Test-Json.Tests.ps1https://github.com/PowerShell/PowerShell/pull/17741/files/519ec516060b45a9a71190bac9b30fff4c220e5a#diff-bba498ea0379e8b955537ae7d01af03dc9c2b30cda1a3483a807b8459bb19e93
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/17741
https://github.com/dkaszews
https://github.com/iSazonov
Replace question mark alias with Where-Objecthttps://github.com/PowerShell/PowerShell/pull/17741/commits/674594ef900d72d3da70e0caa60e9fae20c02298
674594ehttps://github.com/PowerShell/PowerShell/pull/17741/commits/674594ef900d72d3da70e0caa60e9fae20c02298
https://github.com/dkaszews
dkaszewshttps://github.com/dkaszews
iSazonovhttps://github.com/iSazonov
July 22, 2022 06:47https://github.com/PowerShell/PowerShell/pull/17741#event-7043805829
https://github.com/iSazonov
iSazonovhttps://github.com/iSazonov
Jul 22, 2022 https://github.com/PowerShell/PowerShell/pull/17741#pullrequestreview-1047545535
View reviewed changes https://github.com/PowerShell/PowerShell/pull/17741/files/674594ef900d72d3da70e0caa60e9fae20c02298
https://github.com/daxian-dbw
daxian-dbwhttps://github.com/daxian-dbw
Jul 22, 2022 https://github.com/PowerShell/PowerShell/pull/17741#pullrequestreview-1048194250
View reviewed changes https://github.com/PowerShell/PowerShell/pull/17741/files/674594ef900d72d3da70e0caa60e9fae20c02298
daxian-dbwhttps://github.com/daxian-dbw
https://github.com/PowerShell/PowerShell/pull/17741#pullrequestreview-1048194250
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/17741
https://github.com/iSazonov
iSazonovhttps://github.com/iSazonov
CL-General https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3ACL-General
Jul 22, 2022https://github.com/PowerShell/PowerShell/pull/17741#event-7048024413
https://github.com/PaulHigin
PaulHiginhttps://github.com/PaulHigin
Jul 22, 2022 https://github.com/PowerShell/PowerShell/pull/17741#pullrequestreview-1048219217
View reviewed changes https://github.com/PowerShell/PowerShell/pull/17741/files/674594ef900d72d3da70e0caa60e9fae20c02298
https://github.com/SteveL-MSFT
SteveL-MSFThttps://github.com/SteveL-MSFT
Jul 25, 2022 https://github.com/PowerShell/PowerShell/pull/17741#pullrequestreview-1049808571
View reviewed changes https://github.com/PowerShell/PowerShell/pull/17741/files/674594ef900d72d3da70e0caa60e9fae20c02298
https://github.com/iSazonov
iSazonovhttps://github.com/iSazonov
iSazonovhttps://github.com/iSazonov
TravisEz13https://github.com/TravisEz13
Jul 25, 2022https://github.com/PowerShell/PowerShell/pull/17741#event-7058523716
https://github.com/iSazonov
iSazonovhttps://github.com/iSazonov
89cc6d1https://github.com/PowerShell/PowerShell/commit/89cc6d1297040c0e1935067c6f3aab31c9101e20
Jul 25, 2022https://github.com/PowerShell/PowerShell/pull/17741#event-7058528513
https://github.com/iSazonov
iSazonovhttps://github.com/iSazonov
Jul 25, 2022https://github.com/PowerShell/PowerShell/pull/17741#issuecomment-1194404364
@dkaszewshttps://github.com/dkaszews
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/17741
https://github.com/ghost
ghosthttps://github.com/ghost
Aug 12, 2022https://github.com/PowerShell/PowerShell/pull/17741#issuecomment-1212603068
Release Noteshttps://github.com/PowerShell/PowerShell/releases/tag/v7.3.0-preview.7
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/17741
Aug 12, 2022 https://github.com/PowerShell/PowerShell/pull/17741#ref-issue-539252962
Test-Json doesn't recognize JSON arrays or primitives #11384 https://github.com/PowerShell/PowerShell/issues/11384
https://github.com/TravisEz13
TravisEz13https://github.com/TravisEz13
Sep 30, 2022 https://github.com/PowerShell/PowerShell/pull/17741#ref-pullrequest-1392861285
Move ApiScan to compliance build #18191 https://github.com/PowerShell/PowerShell/pull/18191
RobertKlohrhttps://github.com/RobertKlohr
Dec 1, 2023 https://github.com/PowerShell/PowerShell/pull/17741#ref-commit-5e47fbc
https://github.com/RobertKlohr
removed custom JSON test until it is re-writtenhttps://github.com/RobertKlohr/PowerShellForLockpath/commit/5e47fbc746dca834f011dd8a160347608f186c8f
https://github.com/RobertKlohr/PowerShellForLockpath/commit/5e47fbc746dca834f011dd8a160347608f186c8f#comments
5e47fbchttps://github.com/RobertKlohr/PowerShellForLockpath/commit/5e47fbc746dca834f011dd8a160347608f186c8f
https://github.co/hiddenchars
https://github.com/PowerShell/PowerShell/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fpull%2F17741
https://github.com/daxian-dbw
daxian-dbw https://github.com/daxian-dbw
https://github.com/PowerShell/PowerShell/pull/17741/files/674594ef900d72d3da70e0caa60e9fae20c02298
https://github.com/SteveL-MSFT
SteveL-MSFT https://github.com/SteveL-MSFT
https://github.com/PowerShell/PowerShell/pull/17741/files/674594ef900d72d3da70e0caa60e9fae20c02298
https://github.com/iSazonov
iSazonov https://github.com/iSazonov
https://github.com/PowerShell/PowerShell/pull/17741/files/674594ef900d72d3da70e0caa60e9fae20c02298
https://github.com/PaulHigin
PaulHigin https://github.com/PaulHigin
https://github.com/PowerShell/PowerShell/pull/17741/files/674594ef900d72d3da70e0caa60e9fae20c02298
https://github.com/iSazonov
iSazonov https://github.com/iSazonov
CL-General https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3ACL-General
Test-Json doesn't recognize JSON arrays or primitives https://github.com/PowerShell/PowerShell/issues/11384
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/17741
https://github.com/dkaszews
https://github.com/iSazonov
https://github.com/daxian-dbw
https://github.com/SteveL-MSFT
https://github.com/PaulHigin
https://github.com/TravisEz13
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.