In Ansible, using the uri module to retrieve some JSON, then output one of the fields using debug.
- name: debug
debug:
msg: "{{ result.json.results[0].series[0].values }}"
The JSON data contains a key called values and this seems to match the Python keyword values(). So instead of returning the value for that key it's returning an object.
ok: [XXX] => {
"msg": "<built-in method values of dict object at 0x7fd131418280>"
}
Any idea how I can protect the call from being interpreted in this way?