# Using Custom Loader (2.0.1)

**URL:** <https://forum.ansible.com/t/using-custom-loader-2-0-1/20968>\
**Category:** Ansible Project\
**Created:** [March 23, 2016, 1:09pm UTC](https://forum.ansible.com/t/using-custom-loader-2-0-1/20968 "2016-03-23T13:09:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Halil\_Burak\_Noyan](https://avatars.discourse-cdn.com/v4/letter/h/839c29/32.png) [@Halil\_Burak\_Noyan](https://forum.ansible.com/u/Halil_Burak_Noyan)\
**Post date:** [March 23, 2016, 1:09pm UTC](https://forum.ansible.com/t/using-custom-loader-2-0-1/20968/1 "2016-03-23T13:09:22Z")

</div>

I am using Ansible 2 API to execute playbooks.  
For vars files, I needed to use inheritance in json, so I built a reference system in json and written a decoder in python. My decoder works with both ordinary json files and my custom files.

I just want to be able to use my decoder for loading vars files. Unfortunately the only solution I found is to create my own loader class and use it via Ansible API.

Is there any solution besides hacking the loader??
