Ansible alternative to jq select

Hi,

I have command like this which picks up an element from a list of AWS hosted zones if hosted zone named “testinternal” is found in the list. If it finds it, extracts Id filed from that element.

aws route53 list-hosted-zones | jq '.HostedZones[] | select(.Name == "testinternal.")' | jq -r ".Id"

Is there an alternative to this in Ansible ? 

If any, then I would like to use it in conjunction with route53_facts module so that I do not need to rely on jq command.