With Python 2.6+ you can do: echo '{"foo": "lorem", "bar": "ipsum"}' | python -m json.tool. or, if the JSON is in a file, you can do: python -m json.tool ...
確定! 回上一頁