Use json serialization in LogEvent