Paul Moore wrote:
So you're proposing a change to the Python language stdlib implementation of that translation. Fine. But you have yet to provide a justification for such a change,
I think it can be justified on the grounds that it allows all of the information in the JSON text to be preserved during both deserialisation and serialisation.
Seems to me this is objectively better. You can always discard information you don't need, but you can't get it back if you need it and it's not there.