def METHOD_NAME(self, es_json: JSON, context: ApiContext) -> JSON:
    """
    Returns a summary of the returned Elasticsearch query results, showing
    the list of dictionaries with user selected fields from request json as keys
    Note: id field is added by server by default whereas other fields are client-selected.
    [
        {
            "id": "1c25e9f5b5dfc1ffb732931bf3899878",
            "@timestamp": "2021-07-12T22:44:19.562354",
            "run": {
                "controller": "dhcp31-171.example.com",
                "name": "pbench-user-benchmark_npalaska-dhcp31-171_2021.07.12T22.44.19",
            },
            "@metadata": {
                "controller_dir": "dhcp31-171.example.com"
            }
        },
    ]
    """
    # If there are no matches for the user, query, and time range,
    # return the empty list rather than failing.
    try:
        count = es_json["hits"]["total"]["value"]
        if int(count) == 0:
            current_app.logger.info("No data returned by Elasticsearch")
            return jsonify([])
    except KeyError as e:
        raise PostprocessError(
            HTTPStatus.BAD_REQUEST,
            f"Can't find Elasticsearch match data {e} in {es_json!r}",
        )
    except ValueError as e:
        raise PostprocessError(
            HTTPStatus.BAD_REQUEST, f"Elasticsearch hit count {count!r} value: {e}"
        )
    results = []
    for hit in es_json["hits"]["hits"]:
        s = hit["_source"]
        s["id"] = hit["_id"]
        results.append(s)
    # construct response object
    return jsonify(results)