how to extract multiple values from json object using jq command

Viewed 2956

I am trying to get multiple values from a json object.

{
    "nextToken": "9i2x1mbCpfo5hQ",
    "jobSummaryList": [
        {
            "jobName": "012210",
            "jobId": "0196f81cae73"
        }
    ]
}

I want nextToken's value and jobName in one jq command.

1 Answers
Related