# Logstash http\_poller body escape double and single quotation marks

**URL:** <https://discuss.elastic.co/t/logstash-http-poller-body-escape-double-and-single-quotation-marks/282039>\
**Category:** Logstash\
**Created:** [August 20, 2021, 7:02am UTC](https://discuss.elastic.co/t/logstash-http-poller-body-escape-double-and-single-quotation-marks/282039 "2021-08-20T07:02:24Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jenhouwu](https://avatars.discourse-cdn.com/v4/letter/j/2bfe46/32.png) [@jenhouwu](https://discuss.elastic.co/u/jenhouwu)\
**Post date:** [August 23, 2021, 10:16am UTC](https://discuss.elastic.co/t/logstash-http-poller-body-escape-double-and-single-quotation-marks/282039/2 "2021-08-23T10:16:29Z")

</div>

> [@zhyp](#):
>
> body =\> '{"query": "SELECT \* FROM test WHERE name = '123'"}'

Try this  
**body =\> '{"query": "SELECT \* FROM test WHERE name = \u0027123\u0027"}'**

---

_[View the full topic](https://discuss.elastic.co/t/logstash-http-poller-body-escape-double-and-single-quotation-marks/282039)._
