Group variable from multiple fields

Dear Community,
I would like to join multiple fields to create a variable:
i.e.

ES --> {data.name:John, alter_name:Johny}
variables --> {"find":"terms", "field":"data.name", "field":"data.alter_name"}
Result--> Names: John, Johny

Does anyone know if this is possible?
Thanks!