Solved Escaping unicode in addon.json when bumping version

This topic has been solved
N

NikitOS

Guest
The xf-addon:bump-version command overwrites the addon.json file with the new version, but the json_encode function escapes Unicode, so values with Unicode characters become unreadable.

Before:
JSON:

Code:
    "extra_urls": {
        "Тест": "https://example.com/"
    }
After:
JSON:

Code:
    "extra_urls": {
        "\u0422\u0435\u0441\u0442": "https://example.com/"
    }

I think it makes sense to disable Unicode escaping when writing the addon.json file to preserve readability.

Continue reading...