Importar contenido JSON desde una web, convertirlo y guardarlo a CSV desde PowerShell
1 2 3 | $web = iwr "https://www.jesusninoc.com/rutinas2.json" $contenidojson = $web.Content | ConvertFrom-Json $contenidojson | ConvertTo-Csv | Out-File fichero.csv |
Importar un fichero CSV y convertirlo a JSON en PowerShell
1 2 | $var = Import-Csv ./fichero.csv $var | Select-Object -Property * | ConvertTo-Json |