translate
translate copied to clipboard
JSON round trip loses formatting
Parsing and saving any JSON format currently completely loses formatting.
- indentation is hardcoded in the module
- any extra new lines are lost
Any news? Downstream depends on this: https://github.com/WeblateOrg/weblate/issues/2066
AFAIK there is no round trip preserving JSON parser for Python. This effectively means that fixing this needs writing own JSON parser and serializer or extending existing JSON parser to support this. Any help with that is welcome :-).