add new chinese translations
This commit is contained in:
17
pages.zh/windows/test-json.md
Normal file
17
pages.zh/windows/test-json.md
Normal file
@@ -0,0 +1,17 @@
|
||||
# 测试-Json
|
||||
|
||||
> 测试字符串是否是有效的 JSON 文档。
|
||||
> 注意:此命令只能通过 PowerShell 使用。
|
||||
> 更多信息:<https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/test-json>。
|
||||
|
||||
- 测试来自 `stdin` 的字符串是否为 JSON 格式:
|
||||
|
||||
`'{{string}}' | Test-Json`
|
||||
|
||||
- 测试字符串的 JSON 格式:
|
||||
|
||||
`Test-Json -Json '{{json_to_test}}'`
|
||||
|
||||
- 测试来自 `stdin` 的字符串是否符合特定的模式文件:
|
||||
|
||||
`'{{string}}' | Test-Json -SchemaFile {{path\to\schema_file.json}}`
|
Reference in New Issue
Block a user