I am really baffled that zig tried to reinvent json with zon file format. The syntax is full of dots (zig struct like), very ugly. I think its a missed opportunity to woo people who are familiar with js land. Regardless support for json file should be first class in any modern language IMO.
I'm sure they have first class support for json, and if they don't you can easily use a C library. The code snippet in their home page years ago was how to read a json file for configuration... at compile time!