Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • But this probably doesn't let me incorporate non-json files. With --arg I can do: jq --arg "$(<1.txt)" '{file: $file}'. Commented Jul 5, 2019 at 9:57
  • Also, the file might not be on disk. You might have retrieved the file from the internet to a variable (file=$(curl ...)). In which case, there's probably no way to use input function. <(echo "$file") doesn't work. Commented Jul 5, 2019 at 11:02
  • @MichaelHomer how if we want to do changes in input.json before merging? Commented Nov 21, 2019 at 15:11