Hello All,
I want remove bracket and u from json data in ansible. I am trying to
retrieve data from json.
I executed this code in playbook
- debug:
msg: "{{ item }}"
loop: "{{ raidurl1 | json_query('json.Members[*].[*]') }}"
I am getting output like
(item=[[u' /refish/v1/Systems/1']])
But i want output like
(item= /redfish/v1/Systems/1 )
How can i remove bracket and u from item. Do i need to change anything in
to debug loop? Please help
Thanks and regards,
Abhi
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/CAEcjLFwnqUC727hEDyW%2BoAiM%2B7hCOm3sNcA-oQ54JNvvHYob6A%40mail.gmail.com.