New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dumps
with WM_PRETTY
not indented by 4 spaces when keys are int
#191
Comments
Assuming the "however, it prints" comes from something else: you are passing a |
HA my bad, I pasted in the wrong thing, editing my OP 😅. I guess my expectation comes from https://python-rapidjson.readthedocs.io/en/latest/dumps.html's section on Basically I am trying to pretty print a blob with
|
I'm sorry, but I'm afraid that cannot work, the underlying |
Yeah I was also experimenting with this: rapidjson.dumps(data, default=str, write_mode=rapidjson.WM_PRETTY) Unfortunately, it gives the same results. Thanks for confirming my intuitions here, going to close this out |
Thanks again, appreciated btw! |
It turns out that something is wrong with |
FTR, commit 8b5fe38 fixes the issue with |
Sigh, that commit references the wrong issue 😶🌫️ |
With
python-rapidjson==1.12
:I expect it to print:
However, it prints:
Is this a bug, or is this just expected behavior when keys are
int
?The text was updated successfully, but these errors were encountered: