From Get-Help ConvertTo-JSON:
-Depth <Int32>
Specifies how many levels of contained objects are included in the JSON representation. The default value is 2.
Set your -Depth parameter whatever depth you need to preserve your data.
More Related Contents:
- Unexpected ConvertTo-Json results? Answer: it has a default -Depth of 2
- Iterating through a JSON file PowerShell
- Convert nested JSON array into separate columns in CSV file
- PowerShell 2.0 ConvertFrom-Json and ConvertTo-Json implementation
- Proper formating of JSON using powershell
- PowerShell : retrieve JSON object by field value
- Why does powershell give different result in one-liner than two-liner when converting JSON?
- Cannot convert PSCustomObjects within array back to JSON correctly
- Merge two json objects
- ConvertFrom-Json max length
- Prettify json in powershell 3
- How to parse JSON from the Invoke-WebRequest in PowerShell?
- Load images based on dynamic path in ReactJs
- Json.NET require all properties on deserialization
- JSON integers: limit on size
- PostgreSQL return result set as JSON array?
- Get ffmpeg information in friendly way
- Python 3, read/write compressed json objects from/to gzip file
- How to marshal a byte/uint8 array as json array in Go?
- How to create index on JSON field in Postgres?
- One dimensional array of strings being parsed to 2d by angular resource
- Deserialize JSON / NSDictionary to Swift objects
- Accessing Nested Map of Type map[string]interface{} in Golang
- How to fix Expected start-union. Got VALUE_NUMBER_INT when converting JSON to Avro on the command line?
- Swift JSONDecoder typeMismatch error
- IE9 JSON Data “do you want to open or save this file”
- Could not write JSON: Infinite recursion (StackOverflowError); nested exception spring boot
- Use swift Codable to decode JSON with values as keys
- Swift 4 Codable – Bool or String values
- Can a JSON value contain a multiline string