# Any way of constructing a json file

**URL:** <https://zola.discourse.group/t/any-way-of-constructing-a-json-file/1707>\
**Category:** Uncategorized\
**Created:** [April 5, 2023, 8:09pm UTC](https://zola.discourse.group/t/any-way-of-constructing-a-json-file/1707 "2023-04-05T20:09:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![adrianboston](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/adrianboston/32/907_2.png) [@adrianboston](https://zola.discourse.group/u/adrianboston)\
**Post date:** [April 5, 2023, 8:09pm UTC](https://zola.discourse.group/t/any-way-of-constructing-a-json-file/1707/1 "2023-04-05T20:09:37Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![spence](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/spence/32/1022_2.png) [@spence](https://zola.discourse.group/u/spence)\
**Post date:** [July 2, 2023, 6:52am UTC](https://zola.discourse.group/t/any-way-of-constructing-a-json-file/1707/2 "2023-07-02T06:52:19Z")

</div>

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

> **[Overview | Zola](https://www.getzola.org/documentation/templates/overview/#load-data)**
>
> Everything you need to make a static site engine in one binary.

---

<div class="post-metadata">

**Author:** ![adrianboston](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/adrianboston/32/907_2.png) [@adrianboston](https://zola.discourse.group/u/adrianboston)\
**Post date:** [November 6, 2023, 11:33pm UTC](https://zola.discourse.group/t/any-way-of-constructing-a-json-file/1707/3 "2023-11-06T23:33:38Z")

</div>

> [@adrianboston](#):
>
> 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

> [@spence](#):
>
> [Overview | Zola](https://www.getzola.org/documentation/templates/overview/#load-data)

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.
