Hey, I get data from MSSQL with this code where the payload is the all entries of the named "key"
This is the SELECT-Code:
The payload I get is an array with all entries of named "key" I selected:
Now i want to rebuild this payload. {not every payload array got same count of entries}
The new payload should be like the following picture (1 key called "key" with the value of it, and 1 key as array called "Signalrauschen (dB)" with all their values of the full payload and finally 1 key as array called "Signalstärke (dBm)" with all their values of the full payload. Finally Payload should look like this:

So I need help to get a function all values from all date.
and once a function to only get the values from now Date().