fix json events output