How can I convert the following script output to json. i'm trying to use it with Zabbix and it advises that the output must be in json.
/usr/bin/find /home/user/*/current/config -name "sidekiq.yml"|awk -F"/" '{ print " { \"{#DIRNAME}\":\""$4"\"}'
Thanks