Edit: Yes, it does.
'{ "a": { "b": { "c": { "d": { "e": 5 } } } } }' | ConvertFrom-Json | ConvertTo-Json
{
"a": {
"b": {
"c": "@{d=}"
}
}
}
So you have to remember to set `-Depth 100` for every invocation of `ConvertTo-Json`. You also can't set it higher because it has a hard-coded limit of 100, so hopefully you never deal with JSON that has more nesting than that.Yeesh. I like PS, but this one commandlet's design has always baffled me.