Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
mkdirp
4y ago
0 comments
Save
Share
Combining here-string with `jq` (if you need variables), is plenty good enough. You'd need a single jq invocation.
0 comments
1 comments · 1 top-level
top
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