title: How do I get a custom field out of the payload using JJWT
body: <p>OK, I am adding a couple of custom claims to the payload when I generate the JWT, and I can pull those out just fine in my front-end (javascript). I then have my javascript send an ajax call to a micro-service and it passes the JWT along with it. I want to get my custom claims out of the JWT in the micro-service. I'm doing the following:</p>
  
  <pre><code>Claims claims = Jwts.parser().setSigningKey(Vars.SECRET_KEY).parseClaimsJws(token).getBody();
   User user = claims.get("customuser", User.class);
  </code></pre>
  
  <p>and it throws an exception.</p>
  
  <pre><code>io.jsonwebtoken.RequiredTypeException: Expected value to be of type: class net.netdatacorp.netdauth.model.User, but was class java.util.LinkedHashMap
      at io.jsonwebtoken.impl.DefaultClaims.get(DefaultClaims.java:128)
  </code></pre>
  
  <p>Here is how the data looks in the JWT inspector on the front-end for my custom claim.</p>
  
  <pre><code>{
    jti: "83bffbad-7d36-4370-9332-21a84f2a3dce",
    iat: 1498241526,
    sub: "test",
    iss: "www.test.net",
    customuser: {
      userId: 1,
      userCd: "TMM",
      firstNm: "Testy",
      lastNm: "McTesty",
      userNm: "test",
      emailAddress: "jacob@test.net",
      active: true,
      createdDt: 1491355712000,
      createdByUserId: 0,
      lastUpdateDt: 1498199278000,
      lastUpdateByUserId: 0,
      lastLoginDt: 1484928016000
    }
  }
  </code></pre>
  
  <p>What am I missing to be able to pull my custom claim out?</p>