# set facts from an arry with white space

**URL:** <https://forum.ansible.com/t/set-facts-from-an-arry-with-white-space/30369>\
**Category:** Ansible Project\
**Created:** [May 19, 2019, 8:13am UTC](https://forum.ansible.com/t/set-facts-from-an-arry-with-white-space/30369 "2019-05-19T08:13:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ATHIRA\_sanoj](https://avatars.discourse-cdn.com/v4/letter/a/3ab097/32.png) [@ATHIRA\_sanoj](https://forum.ansible.com/u/ATHIRA_sanoj)\
**Post date:** [May 19, 2019, 8:13am UTC](https://forum.ansible.com/t/set-facts-from-an-arry-with-white-space/30369/1 "2019-05-19T08:13:21Z")

</div>

`  
Hello Team

i am trying to set facts from a json array, since the key contains space i am unable to parse, can someone help me here,  
i want to set fact as `“name”: “IN-FG-04” when ```“vdom”: “vdom-shop”``

`

- name: Iterate JSON  
set\_fact:  
app\_item: “{{ item[‘scope member’] }}”  
with\_items: “{{ result.results }}”  
register: app\_result

`

{  
“msg”: {  
“ansible\_facts”: {  
“discovered\_interpreter\_python”: “/usr/bin/python”  
},  
“changed”: false,  
“failed”: false,  
“msg”: “Custom Query Success”,  
“results”: [  
{  
“name”: “FG-04-Policy”,  
“obj ver”: 3,  
“oid”: 1196,  
“package settings”: {  
“central-nat”: “disable”,  
“fwpolicy-implicit-log”: “disable”,  
“fwpolicy6-implicit-log”: “disable”,  
“inspection-mode”: “proxy”  
},  
“scope member”: [  
{  
“name”: “IN-FG-04”,  
“vdom”: “vdom-shop”  
}  
],  
“type”: “pkg”  
},  
{  
“name”: “FG-04-DC”,  
“obj ver”: 23,  
“oid”: 1216,  
“package settings”: {  
“central-nat”: “disable”,  
“fwpolicy-implicit-log”: “disable”,  
“fwpolicy6-implicit-log”: “disable”,  
“inspection-mode”: “proxy”  
},  
“scope member”: [  
{  
“name”: “IN-FG-04”,  
“vdom”: “vdom1-dc”  
}  
],  
“type”: “pkg”  
}  
]  
}  
}  
`
