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

16 Replies, 2059 Views

If you’re still struggling, you might wanna check out [jsonlint.com](https://jsonlint.com). It’s a great tool for validating and formatting JSON.

For json dumps without newlines, your approach is correct. Just make sure you’re not overriding the `indent` or `separators` elsewhere in your code.

Messages In This Thread



Users browsing this thread: 1 Guest(s)