Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 695 Bytes

convert-json-to-csv-using-powershell.md

File metadata and controls

13 lines (8 loc) · 695 Bytes

Convert JSON To CSV Using PowerShell

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.