Test-Json
Test whether a string is a valid JSON document. Note: This command can only be used through PowerShell. More information: https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/test-json.
- Test if a string from
stdinis in JSON format:
'' | Test-Json
- Test if a string JSON format:
Test-Json -Json ''
- Test if a string from
stdinmatches a specific schema file:
'' | Test-Json -SchemaFile
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
