CSV to JSON

Hi,

Is it possible to convert CSV file to JSON format using Ansible modules, I have searched for the modules have’t found. Or else do we need to use any scripting language to achieve this powershell or python ?

Thank you,
Shyam.

Hi,

Is it possible to convert CSV file to JSON format using Ansible modules,

Thsi really sounds like the wrong tool for the job, to me.

Or else do we need to use any scripting language to achieve this powershell
or python ?

I've no idea about powershell (but I don't think it would be easy).

Python could do it, perl could do it, and you might want to investigate
telegraf.

Regards,

Antony.

Take a Look at Miller.

https://github.com/johnkerl/miller

As already mentioned, Ansible is not the best tool for data conversion
... however, the csv lookup and a template with the to_json filter CAN
do the work .