Extract payload value

#1

I have this payload and I would like the min and max value.
I do not know if I'm doing well but I get nothing.
{"bins":[{"min":4,"max":3}] }
let min = payload.bins.min
let max = payload.bins.max

Help Please,

0 Likes

#2

You've missed the fact that the min/max values are an object within an array.

Try something like:

let min = payload.bins[0].min
let max = payload.bins[0].max
0 Likes

#3

You can use the debug panel to get the path to a value. Hover over the value within the panel and its one of the options that appears

0 Likes

#4

Thank you @TotallyInformation @ukmoose

0 Likes