mojira.dev
MC-278459

unifont.json contains trailing comma

The assets/minecraft/font/include/unifont.json file obtained from resources.download.minecraft.net contains a trailing comma, which is invalid JSON. The game reads this file in lenient mode, but this is not guaranteed for external tools.

How to reproduce

  1. Download https://resources.download.minecraft.net/f4/f40266672fa6cd5c678cbfd5a7fdcfe06e30c629

  2. Open the file in a text editor

  3. Notice on line 101 that there is a trailing comma

Expected behavior
I expected that all JSON files in assets would be valid

Attachments

Comments 2

Whether the game accepts lenient JSON or not is rather inconsistent. Perhaps that's worth reporting as well? I don't have a complete list though.

Misode

boq

Confirmed

Platform

Low

Internationalisation, Resource Packs

1.21.3, 1.21.4 Pre-Release 1

25w18a

Retrieved