Hi !

I want to export YAML variable to JSON for use with *jq* tool but the last 
don't like JSON sent by Ansible.
shell : 'echo {{ var | to_json }} | jq'

For that work, I must quote keys and datas that seems the good way. See 
here : 
http://stackoverflow.com/questions/949449/json-spec-does-the-key-have-to-be-surrounded-with-quotes
Is there any possibility to do that with Ansible ?

Thanks,
Sylvain

-- 
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/26e1240d-d939-4fbe-a373-44d061152922%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to