use JSON type for retrieving metrics