# Implemento json

**URL:** <https://discourse.nodered.org/t/implemento-json/47492>\
**Category:** General\
**Created:** [22 June 2021 17:14 UTC](https://discourse.nodered.org/t/implemento-json/47492 "2021-06-22T17:14:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![emerson4594](https://avatars.discourse-cdn.com/v4/letter/e/7ba0ec/32.png) [@emerson4594](https://discourse.nodered.org/u/emerson4594)\
**Post date:** [22 June 2021 17:14 UTC](https://discourse.nodered.org/t/implemento-json/47492/1 "2021-06-22T17:14:51Z")

</div>

```auto
[
    {
        "series": [
            "X"
        ],
        "data": [
            [
                100,
                85,
                60,
                40
               
            ]
        ],
        "labels": [
            "Ideal",
            "world class",
            "Média ",
            "Baixa",
            "OEE"
        ]
    }
]

```

como faço para colocar uma variável depois do valor 40, tentei msg.payload mas não aceita

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [22 June 2021 18:59 UTC](https://discourse.nodered.org/t/implemento-json/47492/2 "2021-06-22T18:59:40Z")

</div>

> [@emerson4594](#):
>
> ‎how do I put a variable after the value 40, I tried msg.payload but does not accept‎

Sorry but you've really given us nothing to go on.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [22 June 2021 19:02 UTC](https://discourse.nodered.org/t/implemento-json/47492/3 "2021-06-22T19:02:27Z")

</div>

Pure guess ...

```auto
var chartData = [
    {
        "series": [
            "X"
        ],
        "data": [
            [
                100,
                85,
                60,
                40
               
            ]
        ],
        "labels": [
            "Ideal",
            "world class",
            "Média ",
            "Baixa",
            "OEE"
        ]
    }
]

chartData.data.push(msg.payload);
return msg;

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [21 August 2021 19:02 UTC](https://discourse.nodered.org/t/implemento-json/47492/4 "2021-08-21T19:02:33Z")

</div>

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