CLOUDIFY-2149 convert events to json format