Skip to content

Instantly share code, notes, and snippets.

@mattia72
Created January 30, 2023 11:04
Show Gist options
  • Save mattia72/0918ddabbce90cd924df2627965a55ba to your computer and use it in GitHub Desktop.
Save mattia72/0918ddabbce90cd924df2627965a55ba to your computer and use it in GitHub Desktop.
Powershell compare one-liner json file
$a = $(Get-Content .\schema2.json) -split ','
$b = $(Get-Content .\schema.json) -split ','
Compare-Object -ReferenceObject $a -DifferenceObject $b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment