5 ms·
Is there stuff jq can do that I can't do with Invoke-RestMethod and manipulating objects in PowerShell?
by jolux 6y ago
Is there stuff jq can do that I can't do with Invoke-RestMethod and manipulating objects in PowerShell?
- inshadows 6y agoIt can run without PowerShell.
- dragonwriter 6y agoThere's nothing in jq you can't do with any programming language with a JSON parser and serializer implemented. But I find jq more pleasant than most for lots of JSON-to-JSON transformations, and Powershell worse than not only jq but also Node or Python for that task.
- jolux 6y agoIt’s a one-liner in PowerShell to grab JSON from an endpoint and deserialize it.
- dragonwriter 6y ago> It’s a one-liner in PowerShell to grab JSON from an endpoint and deserialize it. Yes, and that’s great. I don't prefer jq for downloading JSON (which it doesn't do), but, as I said, for JSON-to-JSON transformations.)
- jolux 6y agoThat’s fair, it probably makes more sense for that usecase than PS. It just feels like yet another DSL to learn
- thatfunkymunki 6y agoI really feel like powershell is underrated in the silicon valley ecosystem. I just had my work computer switched from mac to win10 and am so glad to have powershell back at the handy.