CLOUDIFY-2149 convert cosmo events to json format