title: Stop Jackson from reading embedded partial JSON
body: <p>In my program I'm using Netty and a Multicast socket to receive some Multicast packets. I'm wrapping and splitting the actual large data up so the process looks something like this. (Abbreviated class)</p>
  
  <pre><code>class Packet {
    private long id;
    private int seq;
    private int max_seq;
    private byte[] data;
  }
  </code></pre>
  
  <p>Inside <code>data</code> is another JSON string. So I collect the packets and then piece the full JSON back together. The problem is that I'm also serializing the <code>Packet</code> into JSON using Jackson and then deserializing.</p>
  
  <p>The problem I've been running into is that I think Jackson is trying to deserialize the <code>data</code> as well. The reason is because I'm taking the byte[] data right off the datagram packet and feeding it into the object mapper.</p>
  
  <p>The error I've been getting is:
  <code>org.codehaus.jackson.map.exc.UnrecognizedPropertyException: Unrecognized field "@type" (Class pctelelog.Packet), not marked as ignorable
   at [Source: [B@36254f63; line: 1, column: 43] (through reference chain: pctelelog.Packet["@type"])</code></p>
  
  <p>The data is a serialized class with a number of types already set for correct deserialization so that's why I think Jackson is having issues.</p>
  
  <p>Is there a way to tell Jackson to treat <code>data</code> as just byte[] and not try to deserialize it with the rest of the packet?</p>