# How to get JSON tag to display as object

**URL:** <https://forum.inductiveautomation.com/t/how-to-get-json-tag-to-display-as-object/89319>\
**Category:** Maker\
**Tags:** perspective\
**Created:** [April 23, 2024, 8:34pm UTC](https://forum.inductiveautomation.com/t/how-to-get-json-tag-to-display-as-object/89319 "2024-04-23T20:34:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vidar\_Hetlelid](https://avatars.discourse-cdn.com/v4/letter/v/dfb087/32.png) [@Vidar\_Hetlelid](https://forum.inductiveautomation.com/u/Vidar_Hetlelid)\
**Post date:** [April 23, 2024, 8:34pm UTC](https://forum.inductiveautomation.com/t/how-to-get-json-tag-to-display-as-object/89319/1 "2024-04-23T20:34:56Z")

</div>

Hi there,

I'm trying to use JSON from MQTT into ignition, using MQTT engine. I have made this test object in Node-red, that i publish to my MQTT broker.

```python
msg.payload = 

{
        "a": 1,
        "b": 2,
        "c": 3,
        "d": {
            "ap":2
        }
    }

```

But in Ignition it is displayed as a string, not an object. What do I need to do to accieve this?

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/e/5efbd856365ef19f941934d186aa87d272c287ec.png)

---

<div class="post-metadata">

**Author:** ![user77](https://avatars.discourse-cdn.com/v4/letter/u/a183cd/32.png) [@user77](https://forum.inductiveautomation.com/u/user77)\
**Post date:** [April 24, 2024, 1:46am UTC](https://forum.inductiveautomation.com/t/how-to-get-json-tag-to-display-as-object/89319/2 "2024-04-24T01:46:17Z")

</div>

You can try using the dict() function.

---

<div class="post-metadata">

**Author:** ![vasanth.p](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/vasanth.p/32/38099_2.png) [@vasanth.p](https://forum.inductiveautomation.com/u/vasanth.p)\
**Post date:** [April 24, 2024, 8:06am UTC](https://forum.inductiveautomation.com/t/how-to-get-json-tag-to-display-as-object/89319/3 "2024-04-24T08:06:38Z")

</div>

If the datatype is changeable, Try Document data type

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/7/b7a5e38eaf0d53c9b4a78775a00f292f2d2f5136.png)
