# Remove key of a json key-value input

**URL:** <https://discuss.elastic.co/t/remove-key-of-a-json-key-value-input/124597>\
**Category:** Logstash\
**Created:** [March 19, 2018, 3:33pm UTC](https://discuss.elastic.co/t/remove-key-of-a-json-key-value-input/124597 "2018-03-19T15:33:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lemec\_Cinq](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lemec_cinq/32/28949_2.png) [@Lemec\_Cinq](https://discuss.elastic.co/u/Lemec_Cinq)\
**Post date:** [March 19, 2018, 3:33pm UTC](https://discuss.elastic.co/t/remove-key-of-a-json-key-value-input/124597/1 "2018-03-19T15:33:04Z")

</div>

I have a json input which contains a key-value where the value is an array,  
I want to keep the array value but directly without the key :

the input:

> ```
> {
> "records": [
> {
> "geometry": {
> "coordinates": [
> 2.27534258685,
> 48.8296843301
> ],
> "type": "Point"
> },
> "recordid": 1
> },
> {
> "geometry": {
> "coordinates": [
> 2.27534258685,
> 48.8296843301
> ],
> "type": "Point"
> },
> "recordid": 2
> },
> {
> "geometry": {
> "coordinates": [
> 2.27534258685,
> 48.8296843301
> ],
> "type": "Point"
> },
> "recordid": 3
> },
> {
> "geometry": {
> "coordinates": [
> 2.27534258685,
> 48.8296843301
> ],
> "type": "Point"
> },
> "recordid": 4
> }
> ]
> }
> 
> ```

would become just an array:

> ```
> [
> {
> "geometry": {
> "coordinates": [
> 2.27534258685,
> 48.8296843301
> ],
> "type": "Point"
> },
> "recordid": 1
> },
> {
> "geometry": {
> "coordinates": [
> 2.27534258685,
> 48.8296843301
> ],
> "type": "Point"
> },
> "recordid": 2
> },
> {
> "geometry": {
> "coordinates": [
> 2.27534258685,
> 48.8296843301
> ],
> "type": "Point"
> },
> "recordid": 3
> },
> {
> "geometry": {
> "coordinates": [
> 2.27534258685,
> 48.8296843301
> ],
> "type": "Point"
> },
> "recordid": 4
> }
> ]
> 
> ```

Do you know how to do this please?

---

<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:** [April 16, 2018, 3:33pm UTC](https://discuss.elastic.co/t/remove-key-of-a-json-key-value-input/124597/2 "2018-04-16T15:33:22Z")

</div>

Closed on April 16, 2018, 3:33pm UTC

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