# Load JSON Schema to Elastic Search

**URL:** <https://discuss.elastic.co/t/load-json-schema-to-elastic-search/208382>\
**Category:** Elasticsearch\
**Created:** [November 18, 2019, 7:44pm UTC](https://discuss.elastic.co/t/load-json-schema-to-elastic-search/208382 "2019-11-18T19:44:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rao\_Waqas\_Akram](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rao_waqas_akram/32/57887_2.png) [@Rao\_Waqas\_Akram](https://discuss.elastic.co/u/Rao_Waqas_Akram)\
**Post date:** [November 18, 2019, 7:44pm UTC](https://discuss.elastic.co/t/load-json-schema-to-elastic-search/208382/1 "2019-11-18T19:44:58Z")

</div>

I am working with Elastic Search v 5.6.16 . I want to provide the JSON schema to the ES and than load the data as per this schema to ES and get back result as List.  
Please help out how to proceed with this

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [November 19, 2019, 6:41am UTC](https://discuss.elastic.co/t/load-json-schema-to-elastic-search/208382/2 "2019-11-19T06:41:05Z")

</div>

With schema, are you referring to mapping or index templates?

> [@Rao\_Waqas\_Akram](#):
>
> load the data as per this schema to ES and get back result as List.

What do you mean with this? What is your use case?

---

<div class="post-metadata">

**Author:** ![Rao\_Waqas\_Akram](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rao_waqas_akram/32/57887_2.png) [@Rao\_Waqas\_Akram](https://discuss.elastic.co/u/Rao_Waqas_Akram)\
**Post date:** [November 19, 2019, 5:32pm UTC](https://discuss.elastic.co/t/load-json-schema-to-elastic-search/208382/3 "2019-11-19T17:32:41Z")

</div>

I have a JSON let say  
{  
"Students" :[{  
"name":"",  
"age":""  
}]}

I want to load this schema to the ES JSON so that ES would take data according to this and will return the List of Documents. List

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 17, 2019, 5:32pm UTC](https://discuss.elastic.co/t/load-json-schema-to-elastic-search/208382/4 "2019-12-17T17:32:50Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
