It’s a trouble with the depth, the default value is 2, can you try :
ConvertTo-json @($val) -Depth 5
More Related Contents:
- Get-Aduser -Filter will not accept a variable
- Delete files older than 15 days using PowerShell
- How to load assemblies in PowerShell?
- try, catch doesent seem to work
- How to get Powershell Invoke-Restmethod to return body of http 500 code response
- How Does Member Enumeration Work in PowerShell 3?
- Powershell script to see currently logged in users (domain and machine) + status (active, idle, away)
- Powershell Using Start-Process in PSSession to Open Notepad
- ConvertTo-JSON an array with a single item
- Powershell – Reboot and Continue Script
- Get-Content -wait not working as described in the documentation
- Check if a file exists or not in Windows PowerShell?
- PowerShell is missing the terminator: “
- Using PowerShell to remove lines from a text file if it contains a string
- Difference between PowerShell Console and PowerShell ISE
- Powershell: Set a Scheduled Task to run when user isn’t logged in
- List of all colors available for PowerShell?
- Renaming files by reformatting existing filenames – placeholders in replacement strings used with the -replace operator
- Add a where-object on a table construct?
- Is there a way to create an alias to a cmdlet in a way that it only runs if arguments are passed to the alias?
- Is there a way to make a PowerShell script work by double clicking a .ps1 file?
- What’s the difference between .replace and -replace in powershell?
- ‘kubectl patch’ works on Linux Bash but not in Windows Powershell ISE
- Ternary operator in PowerShell
- Get-Content and show control characters such as `r – visualize control characters in strings
- Powershell send-mailmessage – email to multiple recipients
- If Statement Against Dynamic Variable [duplicate]
- How do I compress files using powershell that are over 2 GB?
- How to pass a custom function inside a ForEach-Object -Parallel
- Connecting to a network folder with username/password in Powershell