Powershell ConvertTo-json with embedded hashtable May 25, 2023 by Tarik It’s a trouble with the depth, the default value is 2, can you try : ConvertTo-json @($val) -Depth 5