The problem was the depth in converting to JSON. The default is too shallow, so "self" was coming out as an object reference, not the string. Just need to add the -Depth flag with enough to get down to it.
| ConvertTo-Json -Depth 20