Json: Enums now have correct values in the output.