Email JSON converter Script