How to Use json.dumps Without Newlines in a Dictionary for Compact Output?

22 Replies, 1975 Views

Honestly, I didn’t even know about the `separators` parameter until now. Thanks for sharing! For anyone else looking for json dumps without newlines in a dictionary, this is the way to go. Also, [jsoneditoronline.org](https://jsoneditoronline.org) is a great tool for quick JSON edits.

Messages In This Thread



Users browsing this thread: 1 Guest(s)