jq get each value in array with parent
问题 I have json that looks like the below. I'd like to get an output that contains one line for each timer record, but includes the name of the service. { "services":{ "service":[ { "name":"Test Value", "timer":[ { "datetime":"08/30/2017 16:33:35", "value":"625" }, { "datetime":"08/30/2017 16:22:38", "value":"240" } ] }, { "name":"Test Value 2", "timer":[ { "datetime":"08/30/2017 16:07:38", "value":"432" }, { "datetime":"08/30/2017 15:59:07", "value":"1355" } ] } ] } } I've come up with .services