Storing gateway information from the payload parser

Storing gateway information from the payload parser

Hello,

Is it possible in the payload decoder to take gateway information of each gateway sent from the Network server such as the EUI, RSSI and SNR, and then turn them into arrays.

For instance if 2 different gateways have sent the data it looks like this on default:
[
    {
      "variable": "gweui",
      "value": "1111111111111111",
      "serie": "1111111111111111"
      },
   {
      "variable": "rssi",
      "value": -97,
      "serie": "1111111111111111"
      },
    {
      "variable": "snr",
      "value": 7,
      "serie": "1111111111111111"
      },
    {
      "variable": "gweui",
      "value": "2222222222222222",
      "serie": "2222222222222222"
      },
    {
      "variable": "rssi",
      "value": -99,
      "serie": "2222222222222222"
       },
    {
      "variable": "snr",
      "value": 6.8,
      "serie": "2222222222222222" }

]


Is it possible to instead look like this:

[
      {
            "variable":"gw1"
            "value":["1111111111111111",-97,7],
            "serie":"1111111111111111"
      },
      {
            "variable":"gw2"
            "value":["2222222222222222",-99,6.8],
            "serie":"2222222222222222"
      }
]

Thanks in advance for your help