Any way of constructing a json file

I need to construct a .json file from data in the pages

Specially the file must return Content-Type header is application/json so possibly the extension might be .json ?!

Anyway of doing that inside of zola or needs a special build prcess

There’s a zola built-in function that allows you to load an object literal, maybe that would help you?

Man a long time ago. For both of us.

Thanks but im taking about constructing a file instead of an .html file. Not loading one.