Convert string in array to value

after Steve's post, I adjusted the payload