mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-28 11:25:16 +08:00
82eb0aa1b6
Co-authored-by: Darío Hereñú <magallania@gmail.com> Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
569 B
569 B
Test-Json
Verifica si una cadena es un documento JSON válido. Nota: Este comando solo se puede usar en PowerShell. Más información: https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/test-json.
- Verificar si una cadena desde
stdinestá en formato JSON:
'{{cadena}}' | Test-Json
- Verificar si una cadena está en formato JSON:
Test-Json -Json '{{json_a_verificar}}'
- Verificar si una cadena desde
stdincumple con un esquema JSON específico:
'{{cadena}}' | Test-Json -SchemaFile {{ruta\a\archivo_esquema.json}}