Translations:How to JSON/3/en
From DragonMineZ Wiki
- Standard JSON. No trailing commas; keys and strings go in double quotes. The config parser tolerates
//comments and skips keys that start with_,$or//without a warning, but DragonMineZ drops them whenever it rewrites a file (a version upgrade,/dmzconfigor the in-game config editor). Keep long notes outside the file. - UTF-8 encoding. Config is read and written as UTF-8 (
ConfigLoader.java). Don't save files as UTF-16, or with a byte order mark (BOM) that your editor might add silently. - Use a real editor. VS Code, Notepad++ or IntelliJ catch bracket and quote mismatches before they reach the server. Notepad works, but it won't warn you about syntax errors.
- Validate before you deploy. A single misplaced comma makes the whole file fail to parse. Paste the file into any JSON validator (or use your editor's built-in linter) before restarting or reloading a live server.