# JSON filter do not encode part of JSON

**URL:** <https://discuss.elastic.co/t/json-filter-do-not-encode-part-of-json/57935>\
**Category:** Logstash\
**Created:** [August 12, 2016, 2:32pm UTC](https://discuss.elastic.co/t/json-filter-do-not-encode-part-of-json/57935 "2016-08-12T14:32:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DK\_3](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dk_3/32/48003_2.png) [@DK\_3](https://discuss.elastic.co/u/DK_3)\
**Post date:** [August 12, 2016, 2:32pm UTC](https://discuss.elastic.co/t/json-filter-do-not-encode-part-of-json/57935/1 "2016-08-12T14:32:43Z")

</div>

I'm using the json filter plugin and want to exclude parsing part of the message into JSON  
[https://www.elastic.co/guide/en/logstash/current/plugins-filters-json.html](https://www.elastic.co/guide/en/logstash/current/plugins-filters-json.html)

```
filter {
        json {
            source => "message"
        }
}

```

For example, below is an example JSON `message`. How can I keep the `Event` field as a string (as in tell json filter plugin to do not parse `Event` content, just keep as a string)

`{"timestamp":"2016-08-12 14:10:52,385","level":"INFO","logger":"com.MyClass","thread":"Thread-48","Event":{"field1":"Value1","field2":"Value2"}}`

or is there a way to convert Event back into a String and add as a new field

---

<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, 4:43am UTC](https://discuss.elastic.co/t/json-filter-do-not-encode-part-of-json/57935/2 "2017-07-06T04:43:39Z")

</div>


