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.

4
  • This seems unecssary. Provided alternative answer Commented Apr 27, 2018 at 18:33
  • 7
    it is actually nice because you can do directly things like jq -c '.stuff | fromjson | .date' stuff.json for example; which you cannot do without the fromjson function Commented Oct 5, 2020 at 13:11
  • 1
    very nice indeed, it works even for nasty nested cases: jq -c '.some.where | fromjson | .even.deeper | fromjson' stuff.json | jq . > interesting-part.json Commented Mar 10, 2022 at 16:34
  • 1
    This also validates the payload as JSON, which is nice. Commented Nov 10, 2023 at 5:30