title: Failed to decode VALUE_STRING as base64
body: <p>I am trying to Deserialize a json using fasterxml jackson , one of the fields in Json is a string but i need to read the same in a byte array PFB the Bean and main class</p>
  
  <pre><code>public class Serialization implements Serializable{
  
      private static final long serialVersionUID = 5894318390213780082L;
      private String name = null;
  
      @JsonDeserialize(using = StringtoByteArray.class)
      private byte[] pass = null;
  //getter setter
  }  
  
  public class StringtoByteArray extends JsonDeserializer&lt;byte []&gt; {
  
      @Override
      public byte[] deserialize(JsonParser jsonParser, DeserializationContext deserializationContext)
              throws IOException, JsonProcessingException {
          return (jsonParser.getBinaryValue());
      }
  }
  
  public class App 
  {
      public static void main(String[] args) throws JsonGenerationException, JsonMappingException, IOException {
          Serialization sr = new Serialization();
          ObjectMapper mapper = new ObjectMapper();
  
          sr = mapper.readValue(new File("D:\\check.json"), Serialization.class);
          System.out.println("sr values ::" +sr.toString());
  
          mapper.writeValue(new File("c:\\user.json"), sr);
      }
  }
  </code></pre>
  
  <p>My json </p>
  
  <pre><code>{
        "name": "AD",
        "pass": "pp"
  }
  </code></pre>
  
  <p>At the time of Deserialize getting 
  Exception in thread "main" com.fasterxml.jackson.databind.JsonMappingException: Failed to decode VALUE_STRING as base64 (MIME-NO-LINEFEEDS): Illegal character '"' (code 0x22) in base64 content
  Kindly suggest </p>