ConvertTo-Json depth is a quiet source of broken automation
PowerShell defaults to a JSON depth of two. Make serialization depth explicit, fail on warnings, and test the actual payload shape.
tested confidence: high Microsoft documentation and local language behavior
read article