Skip to content

Instantly share code, notes, and snippets.

@choutkamartin
Created July 29, 2021 23:28
Show Gist options
  • Save choutkamartin/8b14aa7bc940c4b9d4067d89a489dd75 to your computer and use it in GitHub Desktop.
Save choutkamartin/8b14aa7bc940c4b9d4067d89a489dd75 to your computer and use it in GitHub Desktop.
Combine two JSON files using Powershell
$data1 = Get-Content .\jsonInput1.json -Raw | ConvertFrom-Json
$data2 = Get-Content .\jsonInput2.json -Raw | ConvertFrom-Json
@($data1; $data2) | ConvertTo-Json | Out-File .\jsonOutput.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment