Created
July 29, 2021 23:28
-
-
Save choutkamartin/8b14aa7bc940c4b9d4067d89a489dd75 to your computer and use it in GitHub Desktop.
Combine two JSON files using Powershell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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