Not sure how to deal with json array in api

So i have this Json array in a workflow api call, which edits this serial field. but because i want the list of values in the array to be dynamic, i’m not sure how to correctly set the values I’d like, using the workflow. how would i go about doing that?

image

image