I was able to convert a list of yaml to Json format.
The below is my yaml.
Listofstrings:
- s1
- S2
Etc
{% for in in listofstrings %}
{ Stringslist : [
{ String : " { i } " },
]
{% end %}
So how do I remove the last comma in my json file to ensure proper Json format.
The Q's may sound naive but any help is greatly appreciated.
--
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/c062ba83-6fc4-4e80-8d50-2d7e504c42e3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.