How to join two fields in JSON array with jq
I’m trying to get output in one line for 2 fields in the array using ‘jq’ curl -X ‘GET’ "https://api.coingecko.com/api/v3/coins/ethereum/market_chart?vs_currency=USD&days=10&interval=daily" -H ‘accept: application/json’|jq ‘.prices[][] gives me output like this: 1652227200000 2344.797715643986 1652313600000 2080.910243657776 1652400000000 1966.6991711336661 1652486400000 2010.214051125259 1652572800000 2064.229357512243 1652659200000 2147.047447880575 1652745600000 2025.8886983912162 1652832000000 2095.178884796724 1652918400000 1915.1771232664505 1653004800000 2023.8482593608173 1653070323000 1931.3963167096579 and I would like… Read More How to join two fields in JSON array with jq