title: unable to convert Enum to string from Json in swift
body: <p>I get the error:</p>
  
  <blockquote>
    <p>Cannot initialize Role from invalid String value Mage</p>
  </blockquote>
  
  <p>when I tried to interpret an array of string as enum type from a JSON file.</p>
  
  <pre><code>struct ChampionsData : Decodable{
      let id : String
      let key : String
      let info : Info
      let tags : [Role]
  }
  
  enum Role : String, CaseIterable, Decodable{
      case Tank = "you believe that last person standing wins"
      case Mage = "you like fantacies and tricking people"
      case Assasin = "you enjoy living with danger"
      case Fighter = "you are the warrior that built this town"
      case Support = "you are a reliable teammate that always appears where you are needed "
      case Marksman = "you tend to be the focus of the game, or the reason of victory or loss"
  
      enum CodingKeys: String, CodingKey {
          case mage = "Mage"
          case assassin = "Assassin"
          case tank = "Tank"
          case fighter = "Fighter"
          case support = "Support"
          case marksman = "Marksman"
      }
  }
  </code></pre>
  
  <p>How can I parse it to a JSON object if I want to interpret tags as an array of Role enum type instead of an array of strings(or get rid of the error)?</p>