Store configs in the program if you can. Store in INI, TOML, or something similarly simple for humans if you must. Never use anything that requires matching syntax as the default (closing tags and matched brackets being the two main ones).
JSON is already strictly worse than XML though as it doesn’t support comments and multi-line strings in a sane way.