This question: write json float in scientific notation was closed as a duplicate of python: json.encoder.FLOAT_REPR changed but no effect
I have analysed the original question, and it is exactly the same question, so I hammered it (someone else already found the original question, so easy job for me)
Now the answer of the original question doesn't answer the question for a newer version of Python, so OP of the duplicate complained (voted to reopen, and downvoted the answer, even if it works on older versions of python)
I noted down the link so I could post on a Python room to ask for experts if they could add a Python 3.6 compatible answer to the original question. I commented about that so the OP knows that a suitable solution is still looked for.
Checking the question again, I see that some gold badge user reopened the question, and an (hack) answer was posted by this same user.
It seems to me that the proper behaviour is to answer the original question, and possibly ping the OP of the duplicate so they can check the answer (and upvote if it works)
Isn't that abusing the reopen feature just to make rep on a duplicate ?
EDIT: seems that there's a better original: Format floats with standard json module and an answer qualifies: https://stackoverflow.com/a/1733105/6451573
print
statements, and this being 2018 and all. The OP had already posted that the duplicate solution was no longer viable in Py3, and I went to it to reproduce for myself. I found what I thought was a workable alternative that did not require monkeypatching. Is it a hack? I think the current form is pretty solid, since it covers the bases likely to be found in JSON, and uses abc types. But reopening "just to make rep on a duplicate"? I'm no rep whore.