At 2015-07-16 23:08:35 -0700, [email protected] wrote:
>
> Whenever I use to_json the resulting json uses single quotes. Then
> when I later try to use from_json it does not parse.
Could you provide more details, please? It worked in the simple case I
just tried:
$ ansible localhost -m debug -a "msg='{{ p|to_json }}'" --extra-vars @p.yml
localhost | success >> {
"msg": "[{\"foo\": 1, \"bar\": 2}, {\"buzh\": 42, \"barf\": 2}]"
}
-- Abhijit
--
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/20150717130622.GA10756%40toroid.org.
For more options, visit https://groups.google.com/d/optout.