Compact but pretty JSON output in python?

后端 未结 2 1569
猫巷女王i
猫巷女王i 2021-01-18 13:17

JSON is written either with indent=None (default) as a single line (unreadable to a human eye) or with ident=N with a newline after each comma.

2条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-18 14:00

    This is not possible at this time, but when RFE: more compact pretty printing is implemented, this question will be answered by using python-rapidjson.

提交回复
热议问题