我是靠谱客的博主 难过身影,这篇文章主要介绍格式化 curl 返回的 json,现在分享给大家,希望可以做个参考。

➜
~ curl 'localhost:9200/get-together/_mapping' | python -m json.tool
% Total
% Received % Xferd
Average Speed
Time
Time
Time
Current
Dload
Upload
Total
Spent
Left
Speed
100
225
100
225
0
0
22228
0 --:--:-- --:--:-- --:--:-- 22500
{
"get-together": {
"mappings": {
"group": {
"properties": {
"name": {
"fields": {
"keyword": {
"ignore_above": 256,
"type": "keyword"
}
},
"type": "text"
},
"organizer": {
"fields": {
"keyword": {
"ignore_above": 256,
"type": "keyword"
}
},
"type": "text"
}
}
}
}
}
}
复制代码

转载于:https://juejin.im/post/5ca461cdf265da307261fdfc

最后

以上就是难过身影最近收集整理的关于格式化 curl 返回的 json的全部内容,更多相关格式化内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(54)

评论列表共有 0 条评论

立即
投稿
返回
顶部