|
|
|
|
|
by jjeaff
933 days ago
|
|
I agree, it wouldn't be the best to handle all json edge cases, but it would be a super easy way to quickly get data from a big chunk of simple json and you could just use subqueries or query chaining for nested results. For anyone who hasn't used powershell, this is the difference I'm talking about. I would not be able to write either of these without looking up the syntax. But knowing very little about powershell, I can tell exactly what that command means while the bash command, not so much. ```powershell
$json | ConvertFrom-Json | Select-Object -ExpandProperty x
``` ```bash
echo $json | jq '.x'
``` |
|