title: Jackson parser json setter to take value as string array
body: <p>I have below json:</p>
  
  <pre><code>    "[{\"movieName\":\"A\",\"Leadactor\":\"\",\"leadActress\":\"\",\"movieTitle\":\"\",\"hero\":\"\",\"heroine\":\"\",\"source\":\"IMDB\"}," +
      "{\"movieName\":\"\",\"Leadactor\":\"\",\"leadActress\":\"\",\"movieTitle\":\"B\",\"hero\":\"B1\",\"heroine\":\"B2\",\"source\":\"Netflix\"}," +
      "{\"movieName\":\"C\",\"Leadactor\":\"C1\",\"leadActress\":\"C2\",\"movieTitle\":\"\",\"hero\":\"\",\"heroine\":\"\",\"source\":\"IMDB\"}," +
      "{\"movieName\":\"D\",\"Leadactor\":\"D1\",\"leadActress\":\"D2\",\"movieTitle\":\"\",\"hero\":\"\",\"heroine\":\"\",\"source\":\"IMDB\"}," +
      "{\"movieName\":\"\",\"Leadactor\":\"\",\"leadActress\":\"\",\"movieTitle\":\"E\",\"hero\":\"E1\",\"heroine\":\"E2\",\"source\":\"Netflix\"}]";
  </code></pre>
  
  <p>I am using jackson parser to map it to a class:</p>
  
  <p>I want movieName and movieTitle to map into Name property in the java class. So i wrote the below class:</p>
  
  <pre><code>public static class MovieData {
      @JsonProperty("Name")
      private String name;
  
      @JsonSetter({"movieName"})
      private void setMovieName(final String name) {
              if((name != null) &amp;&amp; (! name.equals(""))) {
                      setNameInternal(name);
              }
      }
  
      @JsonSetter("movieTitle")
      private void setMovieTitle(final String name) {
              if((name != null) &amp;&amp; (! name.equals(""))) {
                      setNameInternal(name);
              }
      }
  
      private void setNameInternal(final String name) {
              this.name = name;
      }
  </code></pre>
  
  <p>}</p>
  
  <p>In my real json there are so many fields like movieName, movieTitle which i want to normalize into a common name. </p>
  
  <p>Is there any simple syntax like the below which can reduce code duplication:</p>
  
  <pre><code>public static class MovieData {
      @JsonProperty("Name")
      private String name;
  
   @JsonSetter(value = { "movieName", "movieTitle" })
   private void setName(final String name) {
          if((name != null) &amp;&amp; (! name.equals(""))) {
                  this.name=name;
          }
  }
    }
  </code></pre>
  
  <p>The above code gave me error on jsonSetter: </p>
  
  <pre><code> Type mismatch: cannot convert from String[] to String.
  </code></pre>
  
  <p><strong>EDIT</strong></p>
  
  <p>If Jackson doesn't support it,  can GSON Support this operation.</p>
  
  <p>Thanks</p>