python打印json
We can use the Python json module to pretty-print the JSON data.
我们可以使用Python json模块漂亮地打印JSON数据。
The json module is recommended to work with JSON files. We can use the dumps()
method to get the pretty formatted JSON string.
建议将json模块与JSON文件一起使用。 我们可以使用dumps()
方法获取格式精美的JSON字符串。