Jinga2 template and numeric dict names

Hello, given the following dict i want to access the ipaddr value within a jinja2 template

network:
   nics:
      '0':
         ipaddr: 10.251.66.242
         netmask: 255.255.255.0

none of the following works:

{% data.network.nics.0.ipaddr %}

{{ data.network.nics[‘0’].ipaddr }} , {% %} is for commands