Closed H-Plus-Time closed 7 years ago
Hi @H-Plus-Time thanks for noticing this. I think that it makes more sense in general to just remove the separators kwarg as stated in the inline.
Agreed, that's a better option. I assumed it was for eking out a little more compactness, though the effect diminishes with the length of keys and values.
Thanks @H-Plus-Time I'll go ahead an merge this.
ujson doesn't have the separators keyword argument (and it looks like the maintainer doesn't wish to add this...ever), so I've added a fairly lightweight flag in the try...except import statement to account for this, and a check around the json.dumps invocation (with or without separators, depending on the flag).