Removed unused property from JsonSerializer.
Fixed the event listener and added an event publisher.