Thanks for the tip! I was struggling with this too. For json dumps without newlines in a dictionary, your solution is perfect. I also found that using `json.dumps(my_dict, indent=None)` works similarly. For quick JSON validation, I use [jsonformatter.curiousconcept.com](https://jsonformatter.curiousconcept.com).
How to Use json.dumps Without Newlines in a Dictionary for Compact Output?
22 Replies, 1723 Views| Messages In This Thread |
|
How to Use json.dumps Without Newlines in a Dictionary for Compact Output? - by - 12-02-2025, 06:25 AM
|
Users browsing this thread: 1 Guest(s)
