Advanced Python

怎么在vi中对于json文件实现prettify?

2019-10-30  本文已影响0人  英武

很简单,只要用下面的代码:

:%!python -m json.tool

或者用jq:

:%!jq '.'
上一篇 下一篇

猜你喜欢

热点阅读