# Define Array in json format

**URL:** <https://discuss.elastic.co/t/define-array-in-json-format/12411>\
**Category:** Elasticsearch\
**Created:** [June 14, 2013, 4:01am UTC](https://discuss.elastic.co/t/define-array-in-json-format/12411 "2013-06-14T04:01:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cdhemant](https://avatars.discourse-cdn.com/v4/letter/c/d9b06d/32.png) [@cdhemant](https://discuss.elastic.co/u/cdhemant)\
**Post date:** [June 14, 2013, 4:01am UTC](https://discuss.elastic.co/t/define-array-in-json-format/12411/1 "2013-06-14T04:01:53Z")

</div>

Hello,

How can i define array in json to perform as curl request?

I have Book with field category which i want to define it as array.

Following doesnt not work  
{  
"book" :  
{  
"properties" :  
{  
"category": { "type" : "array"}  
}  
}  
}

---

<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:** [July 6, 2017, 2:31am UTC](https://discuss.elastic.co/t/define-array-in-json-format/12411/2 "2017-07-06T02:31:18Z")

</div>

Closed on July 6, 2017, 2:31am UTC


