how to parse a JSON String with jq (or other alternatives)?

jq has the fromjson builtin for this:

jq '.c | fromjson | .id' myFile.json

fromjson was added in version 1.4.

Leave a Comment