How to change tab width when converting to JSON in Powershell
Because the PowerShell’s ConvertTo-Json produces non-deterministic indentation, the current answers will not produce JSON that has exactly two spaces for each depth in the data structure. To get each level of nested data indented exactly two spaces more than the enclosing level requires rebuilding the indentation. (For what it’s worth, looks like this was fixed … Read more