# Runtime field Create Nested Object

**URL:** <https://discuss.elastic.co/t/runtime-field-create-nested-object/312316>\
**Category:** Elasticsearch\
**Tags:** runtime-fields\
**Created:** [August 17, 2022, 5:55pm UTC](https://discuss.elastic.co/t/runtime-field-create-nested-object/312316 "2022-08-17T17:55:05Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jsanz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsanz/32/53734_2.png) [@jsanz](https://discuss.elastic.co/u/jsanz)\
**Post date:** [September 9, 2022, 3:07pm UTC](https://discuss.elastic.co/t/runtime-field-create-nested-object/312316/2 "2022-09-09T15:07:13Z")

</div>

Reading the signatures of the `emit` method in the documentation I don't think arrays are supported, but I may be wrong.

> **[Runtime fields context | Painless Scripting Language \[8.4\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/painless/current/painless-runtime-fields-context.html)**

---

_[View the full topic](https://discuss.elastic.co/t/runtime-field-create-nested-object/312316)._
