Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
mkdirp
4y ago
0 comments
Share
Combining here-string with `jq` (if you need variables), is plenty good enough. You'd need a single jq invocation.
0 comments
default
newest
oldest
anamexis
4y ago
Yes, `jq` would work fine, but so would `jo`. The point is, if there is anything more than the simplest dynamic values, constructing valid JSON just with POSIX shell is a huge pain.
j
/
k
navigate · click thread line to collapse