# Remove Double quotes from field JSON file

**URL:** <https://discuss.elastic.co/t/remove-double-quotes-from-field-json-file/229641>\
**Category:** Logstash\
**Created:** [April 24, 2020, 11:57am UTC](https://discuss.elastic.co/t/remove-double-quotes-from-field-json-file/229641 "2020-04-24T11:57:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alfonso.viso](https://avatars.discourse-cdn.com/v4/letter/a/ce73a5/32.png) [@alfonso.viso](https://discuss.elastic.co/u/alfonso.viso)\
**Post date:** [April 24, 2020, 11:57am UTC](https://discuss.elastic.co/t/remove-double-quotes-from-field-json-file/229641/1 "2020-04-24T11:57:09Z")

</div>

Hi Community!!,

I need some help with this issue. Our source is a json file and one of these fields has this value:

"IF\_NON\_MATCH":""99914b932bd37a50b983c5e7c90ae93b""

I try remove the double quotes with gsub using these ways:

1 - mutate { gsub =\> ['[content][CustomData][IF\_NON\_MATCH]','""',' '] }

2 - mutate { gsub =\> ["[content][CustomData][IF\_NON\_MATCH]",""""," "] }

But it doesn't work, I receive this error:

[[main]\<file] json - JSON parse error, original data now in message field {:error=\>#\<LogStash::Json::ParserError: Unexpected character ('9' (code 57)): was expecting comma to separate Object entries

Anybody know what is the right sintax?

Thank you ,

Best Regards

---

<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:** [May 22, 2020, 11:57am UTC](https://discuss.elastic.co/t/remove-double-quotes-from-field-json-file/229641/2 "2020-05-22T11:57:16Z")

</div>

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