jq从curl返回null

我在Docker容器中运行以下命令:

curl 'https://demo.cachethq.io/API/v1/components?name=Blog' | tac | tac | jq '.' 

但是,我得到空输出(curl进度条后)运行没有最后的jq命令给出正确的json。 任何帮助将不胜感激(tac是停止在jq之前结束curl输出)

这是微不足道的错误。

从以下url更改url

 curl 'https://demo.cachethq.io/API/v1/components?name=Blog' | tac | tac | jq '.' 

至:

 curl 'https://demo.cachethq.io/api/v1/components?name=Blog' | tac | tac | jq '.' 

输出:

  % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 426 0 426 0 0 176 0 --:--:-- 0:00:02 --:--:-- 176 { "meta": { "pagination": { "total": 1, "count": 1, "per_page": 20, "current_page": 1, "total_pages": 1, "links": { "next_page": null, "previous_page": null } } }, "data": [ { "id": 4, "name": "Blog", "description": "The Alt Three Blog.", "link": "https://blog.alt-three.com", "status": 1, "order": 0, "group_id": 2, "created_at": "2016-11-03 01:30:01", "updated_at": "2016-11-03 01:30:01", "deleted_at": null, "enabled": true, "status_name": "Operational", "tags": { "": "" } } ] }