# Why i have this error :: \_jsonparsefailure

**URL:** <https://discuss.elastic.co/t/why-i-have-this-error-jsonparsefailure/111190>\
**Category:** Logstash\
**Created:** [December 11, 2017, 10:08pm UTC](https://discuss.elastic.co/t/why-i-have-this-error-jsonparsefailure/111190 "2017-12-11T22:08:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![yaser](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yaser/32/109240_2.png) [@yaser](https://discuss.elastic.co/u/yaser)\
**Post date:** [December 11, 2017, 10:08pm UTC](https://discuss.elastic.co/t/why-i-have-this-error-jsonparsefailure/111190/1 "2017-12-11T22:08:29Z")

</div>

i send string like this message filed from rabbitmq to logstash but i cant parse my json to my mapping!

> "message": "{DeviceID :2155CA",  
> "tags": [  
> "\_jsonparsefailure"  
> ]  
> },

---

<div class="post-metadata">

**Author:** ![alexus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexus/32/12696_2.png) [@alexus](https://discuss.elastic.co/u/alexus)\
**Post date:** [December 11, 2017, 10:38pm UTC](https://discuss.elastic.co/t/why-i-have-this-error-jsonparsefailure/111190/2 "2017-12-11T22:38:35Z")

</div>

probably due to input isn't valid JSON

---

<div class="post-metadata">

**Author:** ![yaser](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yaser/32/109240_2.png) [@yaser](https://discuss.elastic.co/u/yaser)\
**Post date:** [December 15, 2017, 4:34pm UTC](https://discuss.elastic.co/t/why-i-have-this-error-jsonparsefailure/111190/3 "2017-12-15T16:34:07Z")

</div>

finally i found it ,  
the problem was from send data from callback to rabbitmq and logstash can discover 🙂  
the rabbitmq payload must be like this zero string :

`{\"Data\" : \"{data}\"}`

---

<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:** [January 12, 2018, 4:34pm UTC](https://discuss.elastic.co/t/why-i-have-this-error-jsonparsefailure/111190/4 "2018-01-12T16:34:11Z")

</div>

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