【发布时间】:2018-10-02 16:06:23
【问题描述】:
我的 json 来自像 curl https://sm.ms/api/upload 这样的命令:
{
"code": "error",
"msg": "No files were uploaded."
}
现在我想得到这样的文本(这个json的所有值):
"error", "No files were uploaded."
我使用命令curl https://sm.ms/api/upload | jq -r .,但只能获取json内容。该文档似乎不支持此功能。
在网上找了半天也没有用,希望大家能帮帮我,谢谢~
【问题讨论】: