3 ms·
$h=@{x=1; y=2}; $h + @{z=3} | ConvertTo-Json { "y": 2, "z": 3, "x": 1 } You can even use [ordered]$h to make keys not go ra
by majkinetor 2y ago
$h=@{x=1; y=2}; $h + @{z=3} | ConvertTo-Json
{
"y": 2,
"z": 3,
"x": 1
}
You can even use [ordered]$h to make keys not go random place.