Add Json.fromObject now formats enums as strings.