2 ms·
" Since everything is text, serialization is trivial. But serialization is vital if you need to work remotely between different shells." Serialization is trivi
by UltraSane 2y ago
" Since everything is text, serialization is trivial. But serialization is vital if you need to work remotely between different shells."
Serialization is trivial in PowerShell but also much more powerful because you can pipe the output of any command to ConvertTo-JSON or ConvertTo-CliXML which gives you very nice STRUCTURED serialization that is much easier to consume.
- crabbone 2y ago> Serialization is trivial in PowerShell There isn't really. For a lot of PowerShell objects, there's no way of converting them to JSON or XML. Imagine what happens if you convert a closure to JSON? It doesn't matter what language you use, it's always going to be a problem. You are simply too inexperienced with the subject to be able to have a judgement on how (well) it works. Trust me, it's anything but "trivial".