Modifying payloads help

Drawing a blank here…
I have the following payload:

But I want it combined as:

0: deviceId=xxxx
1: deviceId=xxxxx

if that makes sense


You’re looking to take the payload that you sent along in that screenshot, and manipulate it to look like:

    "query": [
        0: {
           "deviceId": <some device id>,
           "station": 1
        1: {
           "deviceId": <some device id>,
           "station": 1

Do I understand that correctly?

yes, correct.
Is a function node my only option?


Yes, for this kind of payload modification, a Function Node is going to be your best option.

Any example of how I would do that?