# Add YAML to load\_data() supported types

**URL:** <https://zola.discourse.group/t/add-yaml-to-load-data-supported-types/1292>\
**Category:** Feature requests\
**Created:** [April 27, 2022, 4:14pm UTC](https://zola.discourse.group/t/add-yaml-to-load-data-supported-types/1292 "2022-04-27T16:14:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![elfsternberg](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/elfsternberg/32/730_2.png) [@elfsternberg](https://zola.discourse.group/u/elfsternberg)\
**Post date:** [April 27, 2022, 4:14pm UTC](https://zola.discourse.group/t/add-yaml-to-load-data-supported-types/1292/1 "2022-04-27T16:14:45Z")

</div>

I already have a patch for this, since I needed it for my own use. The patch comes with all the same tests as functionality as load\_json(). It’s actually trivial; mostly a duplicate of the load\_json() function, and since serde\_yaml is already in the binary due to it being included to parse the frontmatter, it’s impact on binary size is minimal.

---

<div class="post-metadata">

**Author:** ![keats](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@keats](https://zola.discourse.group/u/keats)\
**Post date:** [April 27, 2022, 7:16pm UTC](https://zola.discourse.group/t/add-yaml-to-load-data-supported-types/1292/2 "2022-04-27T19:16:18Z")

</div>

That should be fine to add.
