How can I use command grouping in order to modify the global variable "data" of the following script?
metrics=\'{"names":["metric1",