jq has the fromjson
builtin for this:
jq '.c | fromjson | .id' myFile.json
fromjson
was added in version 1.4.
Related Contents:
- Are multi-line strings allowed in JSON?
- Using jq to parse and display multiple fields in a json serially
- Escape a string for a sed replace pattern
- Display curl output in readable JSON format in Unix shell script
- How to count items in JSON object using command line?
- How to get key names from JSON using jq
- How to install JQ on Mac on the command line?
- JQ: Select multiple conditions
- How to merge 2 JSON objects from 2 files using jq?
- How do I update a single value in a json document using jq?
- Using jq or alternative command line tools to compare JSON files
- jq: print key and value for each entry in an object
- How to format a JSON string as a table using jq?
- Concat 2 fields in JSON using jq
- Modify a key-value in a json using jq in-place
- How to sort a json file by keys and values of those keys in jq
- jq Conditional output
- Extract a specific field from JSON output using jq
- How do I use jq to convert number to string?
- jq: Cannot index array with string
- Get outputs from jq on a single line
- Can I pass a string variable to jq not the file?
- Install jq JSON processor on Ubuntu 10.04
- Escaping characters in bash (for JSON)
- How to filter array of objects by element property values using jq?
- Convert string to json in jq [duplicate]
- Iterating through JSON array in Shell script
- jq – How to filter a json that does not contain
- Exclude column from jq json output
- jq select value from array
- passing arguments to jq filter
- jq – How do I print a parent value of an object when I am already deep into the object’s children?
- how to convert json string to json object in dart flutter?
- getting all the values of an array with jq
- Can JSON numbers be quoted?
- jq dates and unix timestamps
- How to convert a string to an integer in a JSON file using jq?
- How to use jq when the variable has reserved characters?
- Check if string is a valid JSON with jq
- Converting CSV to JSON in bash
- How to extract a field from each object in an array with jq?
- Exporting JSON to environment variables
- How to map an object to arrays so it can be converted to csv?
- How to convert a json response into yaml in bash
- Printing multiple values on the same line
- JSON JQ if without else
- jq: group and key by property
- Using jq how can I replace the name of a key with something else
- Using jq, convert array of objects to object with named keys
- How to filter an array of JSON objects with jq?