Unlike app-connect front-end (variables, arrays & datastore/json component), there are no such components on the server-connect side, hence this challenge...
I had a tough time building dynamic json structure and eventually made it work.. Gimme some time, I will draft & share how I achieved it..