adding json event support