From a7df8063ed93169737bb2ebac916650289fb55eb Mon Sep 17 00:00:00 2001 From: quoteee <45695032+JulianHayward@users.noreply.github.com> Date: Wed, 26 Jun 2024 17:09:57 +0200 Subject: [PATCH] definition convertfrom-json not asHashtable (#463) --- Scripts/Format-PolicyDefinition.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Scripts/Format-PolicyDefinition.ps1 b/Scripts/Format-PolicyDefinition.ps1 index fd2faa64..63d59a70 100644 --- a/Scripts/Format-PolicyDefinition.ps1 +++ b/Scripts/Format-PolicyDefinition.ps1 @@ -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