Category: Windows
You can use the ConvertFrom-Json
PowerShell command to convert JSON to a different format.
Assuming a file called input.json
in the current directory, use the following command to convert to output.csv
in your temp directory:
Get-Content input.json | ConvertFrom-Json | Export-Csv C: \Temp\output.csv -NoTypeInformation
Note: The above will convert simple JSON data structures. See ConvertFrom-Json for details on how to convert more complex JSON data structures to different formats.