# Logstash: Замена индексов в массиве в JSON

**URL:** <https://discuss.elastic.co/t/logstash-json/200848>\
**Category:** Вопросы на русском языке\
**Created:** [September 24, 2019, 11:09am UTC](https://discuss.elastic.co/t/logstash-json/200848 "2019-09-24T11:09:32Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Igor\_Motov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_motov/32/45193_2.png) [@Igor\_Motov](https://discuss.elastic.co/u/Igor_Motov)\
**Post date:** [September 24, 2019, 1:28pm UTC](https://discuss.elastic.co/t/logstash-json/200848/2 "2019-09-24T13:28:58Z")

</div>

> [@Transform array objects in fields](https://discuss.elastic.co/t/transform-array-objects-in-fields/121269):
>
> hi, I have a object like this: "fields": [{ "value": "123", "id": "0" }, { "value": "456", "id": "1" }, { "value": "llllobj", "id": "2" }] but i want change the id to a field in my object like this: "fields": { "0": "123", "1": "456", "2": "llllobj" } it´s possible? What is the most appropriate filter for this?

---

_[View the full topic](https://discuss.elastic.co/t/logstash-json/200848)._
