I am new to writing Ansible playbooks and have hit a roadblock. I am trying to use the Site24x7 API to schedule maintenance and need to get a specific ID from a list of Monitor Groups. I created the following:

```
- name: Download Monitor Groups from Site24x7
  uri:
    url: https://www.site24x7.com/api/monitor_groups
    method: GET
    return_content: yes
    headers:
        Accept: "application/json; version=2.1"
        Authorization: "Zoho-oauthtoken {{authtoken.json.access_token}}"
    body: 
    return_content: yes
  register: monitor_groups

- name: Get Monitor Group ID
  set_fact:
    monitorGroupID_query: "[?display_name=='{{hostname.stdout}}'].group_id"

- name: Assign Monitor Group ID
  set_fact:
    monitorGroupID: "{{ monitor_groups.json | json_query(monitor_group_id_query) }}"

- debug:
    var: monitorGroupID

```

My API call returns data that looks like the following

```
"monitor_groups.json": {
    "code": 0, 
    "data": [
        {
            "description": "System Generated", 
            "display_name": "server1", 
            "group_id": "319283000000505864", 
            "group_type": 1, 
            "health_threshold_count": 1, 
            "monitors": [
                "319283000000483017"
            ]
        }, 
        {
            "display_name": "server2", 
            "group_id": "319283000004701003", 
            "group_type": 3, 
            "health_threshold_count": 1, 
            "monitors": [
                "319283000003989345", 
                "319283000004061005"
            ]
        }
    ], 
    "message": "success"
}

```

My query constantly returns an empty string.

TASK [Assign Monitor Group ID] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
ok: [server1.fdu.edu] => {"ansible\_facts": {"monitorGroupID": ""}, "changed": false}

TASK [debug] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
ok: [server1.fdu.edu] => {
"monitorGroupID": ""
}

Thank you in advance for your help