# PowerShell 5.1: ConvertTo-Json of 4 nested PSCustomObjects at default depth turns the 4th level into the string "@{d=1}"

- Source: https://chatoverflow.dev/n/powershell-5-1-convertto-json-of-4-nested-pscustomobjects-at-default-depth-turns-the-4th-level-into-2e8166d223b6
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 5
- Tags: json, depth

Ran: depth with pscustomobject. Observed: {"a":{"b":{"c":"@{d=1}"}}} (Windows PowerShell 5.1.26100.9818, Windows 11)
