# Train a Rasa Model with JSON training data format

**URL:** <https://forum.rasa.com/t/train-a-rasa-model-with-json-training-data-format/12453>\
**Category:** Rasa Open Source\
**Created:** [July 3, 2019, 11:34pm UTC](https://forum.rasa.com/t/train-a-rasa-model-with-json-training-data-format/12453 "2019-07-03T23:34:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mscott12](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@mscott12](https://forum.rasa.com/u/mscott12)\
**Post date:** [July 3, 2019, 11:34pm UTC](https://forum.rasa.com/t/train-a-rasa-model-with-json-training-data-format/12453/1 "2019-07-03T23:34:02Z")

</div>

[Looking at the HTTP API documentation for version 1.1.4](https://rasa.com/docs/rasa/api/http-api/#tag/Model/paths/~1model~1train/post), in the train a RASA model section and example request body schema example, the training data was in markdown format. Can training data in JSON format be used within the application/json request body? Or does it have to be markdown?

---

<div class="post-metadata">

**Author:** ![KarthiAru](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/karthiaru/32/7163_2.png) [@KarthiAru](https://forum.rasa.com/u/KarthiAru)\
**Post date:** [July 4, 2019, 5:09am UTC](https://forum.rasa.com/t/train-a-rasa-model-with-json-training-data-format/12453/2 "2019-07-04T05:09:21Z")

</div>

Yes, it can be in json format. Just add the file “nlu.json” in the data folder. The training data from both the files “nlu.json” and “nlu.md” will be used for training if it exists.

---

<div class="post-metadata">

**Author:** ![mscott12](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@mscott12](https://forum.rasa.com/u/mscott12)\
**Post date:** [July 5, 2019, 1:30pm UTC](https://forum.rasa.com/t/train-a-rasa-model-with-json-training-data-format/12453/3 "2019-07-05T13:30:02Z")

</div>

Thank you for the response, but can the json training data be provided inline similar to how to markdown nlu training data is provided in the example?

---

<div class="post-metadata">

**Author:** ![KarthiAru](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/karthiaru/32/7163_2.png) [@KarthiAru](https://forum.rasa.com/u/KarthiAru)\
**Post date:** [July 6, 2019, 1:48pm UTC](https://forum.rasa.com/t/train-a-rasa-model-with-json-training-data-format/12453/4 "2019-07-06T13:48:00Z")

</div>

@mscott12 I think you can’t. Checkout [tracy](https://yuukanoo.github.io/tracy/) to generate the files in `json` format. Also, checkout [Convert a Rasa NLU training file from JSON to Markdown format · GitHub](https://gist.github.com/nmstoker/04355dc113608fe88b999ea1b95fb355) to convert `json` to `md` format.

---

<div class="post-metadata">

**Author:** ![daxaxelrod](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/daxaxelrod/32/2433_2.png) [@daxaxelrod](https://forum.rasa.com/u/daxaxelrod)\
**Post date:** [July 31, 2019, 3:16pm UTC](https://forum.rasa.com/t/train-a-rasa-model-with-json-training-data-format/12453/5 "2019-07-31T15:16:47Z")

</div>

I just looked at the server file. Doenst seem like it allows for json files as this line

> <https://github.com/RasaHQ/rasa/blob/4650f67b1c17545ed4a78907abb7463d171de727/rasa/server.py#L625>

joins the temp dir with nlu.md which is then used in the “training\_files” arg for the actual training Maybe we can add a little flag saying hey this is json? the training files arg supports json, just not the rasa http endpoint.

---

<div class="post-metadata">

**Author:** ![DhayaanidhiJG](https://avatars.discourse-cdn.com/v4/letter/d/278dde/32.png) [@DhayaanidhiJG](https://forum.rasa.com/u/DhayaanidhiJG)\
**Post date:** [March 31, 2020, 7:20am UTC](https://forum.rasa.com/t/train-a-rasa-model-with-json-training-data-format/12453/6 "2020-03-31T07:20:38Z")

</div>

@KarthiAru can you say me bit in detail… What are the other requirements to train json file like what about stories.md file?
