# MQTT - reading json data

**URL:** <https://www.wago.community/t/mqtt-reading-json-data/2434>\
**Category:** CODESYS\
**Tags:** mqtt\
**Created:** [November 24, 2025, 7:26am UTC](https://www.wago.community/t/mqtt-reading-json-data/2434 "2025-11-24T07:26:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lukasz19](https://avatars.discourse-cdn.com/v4/letter/l/3da27b/32.png) [@lukasz19](https://www.wago.community/u/lukasz19)\
**Post date:** [November 24, 2025, 7:26am UTC](https://www.wago.community/t/mqtt-reading-json-data/2434/1 "2025-11-24T07:26:19Z")

</div>

Hello, I started with the mqqt protocol and followed Wago’s tutorial on YouTube [https://www.youtube.com/watch?v=FhdKcK8o0Ts](https://www.youtube.com/watch?v=FhdKcK8o0Ts). I have a working broker from which I can read data: STRING, INT etc., but I’m having trouble reading the array of values, for example:  
“values”: [3928, 2993],

“raw\_data”: [3928],

Can someone tell me if there’s a function for reading and the easiest way to do it? Thanks in advance.

---

<div class="post-metadata">

**Author:** ![WagoDamRud](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/wagodamrud/32/258_2.png) [@WagoDamRud](https://www.wago.community/u/WagoDamRud)\
**Post date:** [November 24, 2025, 8:51am UTC](https://www.wago.community/t/mqtt-reading-json-data/2434/2 "2025-11-24T08:51:49Z")

</div>

There is _WagoAppJSON_ library which should be helpfull. You can also use Codesys _JSON_ library, but if you receive data without UTF8 special characters, I prefer to use WAGO library. In Sample Projects [Sample Projects for CODESYS 3 | WAGO Download Center](https://downloadcenter.wago.com/wago/learning-material/details/m3rekyknx8gf05wgrn) you can find examples
