fixed json serialization fix for email