This file contains hidden or 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
| # Function to merge two JSON files, where the 2nd will override any settings in the 1st with the same name. | |
| # Original by https://github.com/Master-Guy (Discord: Master-Guy#0001) | |
| function JsonMerge { | |
| param( | |
| [Parameter(Mandatory)] | |
| [PSCustomObject] $Json1, | |
| [Parameter(Mandatory)] | |
| [PSCustomObject] $Json2, | |
| [parameter(DontShow)] | |
| [int] $Nesting = 0, |