# "Unknown key for a START\_ARRAY in in json

**URL:** <https://discuss.elastic.co/t/unknown-key-for-a-start-array-in-in-json/230091>\
**Category:** Elasticsearch\
**Created:** [April 28, 2020, 7:18am UTC](https://discuss.elastic.co/t/unknown-key-for-a-start-array-in-in-json/230091 "2020-04-28T07:18:45Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [April 28, 2020, 8:02am UTC](https://discuss.elastic.co/t/unknown-key-for-a-start-array-in-in-json/230091/5 "2020-04-28T08:02:10Z")

</div>

This works well:

```auto
DELETE test 
POST test/_doc
{
  "test": [
    {
      " name": " vinay",
      "location": "india"
    },
    {
      "name": "kumar",
      "location": "india2",
      "contactdetails": [
        {
          "phone": "1234",
          "address": "hyd"
        }
      ]
    }
  ]
}

```

It gives:

```auto
{
  "_index" : "test",
  "_type" : "_doc",
  "_id" : "bVTOv3EBJjDNjw2CIKRe",
  "_version" : 1,
  "result" : "created",
  "_shards" : {
    "total" : 2,
    "successful" : 2,
    "failed" : 0
  },
  "_seq_no" : 0,
  "_primary_term" : 1
}

```

Could you provide a full recreation script as described in [About the Elasticsearch category](https://discuss.elastic.co/t/about-the-elasticsearch-category/21). It will help to better understand what you are doing. Please, try to keep the example as simple as possible.

A full reproduction script will help readers to understand, reproduce and if needed fix your problem. It will also most likely help to get a faster answer.

---

_[View the full topic](https://discuss.elastic.co/t/unknown-key-for-a-start-array-in-in-json/230091)._
