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.
indent=None
ident=N
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.