mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-08 10:55:40 +02:00

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
stdin
está 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
stdin
cumple con un esquema JSON específico:
'{{cadena}}' | Test-Json -SchemaFile {{ruta\a\archivo_esquema.json}}