change query return type to [Metric, ResultString] where ResultString can be directly used for initializing a JSON array