Skip to content

Commit

Permalink
definition convertfrom-json not asHashtable (#463)
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianHayward authored Jun 26, 2024
1 parent 90c62f0 commit a7df806
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Scripts/Format-PolicyDefinition.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@ function Format-PolicyDefinition {
if (!(Test-Json $content -ErrorAction SilentlyContinue)) {
throw "'$($file.FullName)' is not valid JSON."
}
$definition = ConvertFrom-Json $content -AsHashtable -Depth 100

#$definition = ConvertFrom-Json $content -AsHashtable -Depth 100
$definition = $content | ConvertFrom-Json
#region fix tolerate flat or nested properties structure, wrong capiatalization of property members

$properties = $definition
Expand Down

0 comments on commit a7df806

Please sign in to comment.