# Using JSON Instead of Markdown with HTTP Server

**URL:** <https://forum.rasa.com/t/using-json-instead-of-markdown-with-http-server/13479>\
**Category:** Rasa Open Source\
**Created:** [July 24, 2019, 4:39pm UTC](https://forum.rasa.com/t/using-json-instead-of-markdown-with-http-server/13479 "2019-07-24T16:39:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kylegallatin](https://avatars.discourse-cdn.com/v4/letter/k/bc8723/32.png) [@kylegallatin](https://forum.rasa.com/u/kylegallatin)\
**Post date:** [July 24, 2019, 4:39pm UTC](https://forum.rasa.com/t/using-json-instead-of-markdown-with-http-server/13479/1 "2019-07-24T16:39:57Z")

</div>

Hi all. I have a question regarding the HTTP API. When using the `/model/train/` endpoint, can I pass the training data in JSON instead of markdown format? It would be an easier machine readable format for the project I’m working on.

---

<div class="post-metadata">

**Author:** ![erohmensing](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/erohmensing/32/1789_2.png) [@erohmensing](https://forum.rasa.com/u/erohmensing)\
**Post date:** [July 29, 2019, 11:27am UTC](https://forum.rasa.com/t/using-json-instead-of-markdown-with-http-server/13479/2 "2019-07-29T11:27:00Z")

</div>

Hi there @kylegallatin, I just looked in the code and I don’t think at this point it’s possible to, as it automatically dumps the contents of your request into an `nlu.md` file. However, I don’t think it would be too hard to adjust this – would you be interested in opening a PR to add this enhancement? I could show you where in the code we would have to add a little more logic.

---

<div class="post-metadata">

**Author:** ![kylegallatin](https://avatars.discourse-cdn.com/v4/letter/k/bc8723/32.png) [@kylegallatin](https://forum.rasa.com/u/kylegallatin)\
**Post date:** [August 1, 2019, 2:54pm UTC](https://forum.rasa.com/t/using-json-instead-of-markdown-with-http-server/13479/3 "2019-08-01T14:54:52Z")

</div>

Hi Ella, thanks for your help! Yeah actually I would - we’d only have to edit `server.py` to also write to json, correct?

---

<div class="post-metadata">

**Author:** ![erohmensing](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/erohmensing/32/1789_2.png) [@erohmensing](https://forum.rasa.com/u/erohmensing)\
**Post date:** [August 2, 2019, 9:12am UTC](https://forum.rasa.com/t/using-json-instead-of-markdown-with-http-server/13479/4 "2019-08-02T09:12:15Z")

</div>

Yep, I think so! [Here](https://github.com/RasaHQ/rasa/blob/master/rasa/server.py#L624) is where the data gets dumped to a file (md automatically) – we also have a guess\_format method that would probably be helpful to use there: [rasa/loading.py at ad4120836fcff7816019cdc9695e8fa3ded2778d · RasaHQ/rasa · GitHub](https://github.com/RasaHQ/rasa/blob/ad4120836fcff7816019cdc9695e8fa3ded2778d/rasa/nlu/training_data/loading.py#L130)
