code: public static Object claimFromJsonObject(String jsonFormattedString, String claimName) throws JoseException {
  		Object claim = null;
  
  		// JSONObject jobj = JSONObject.parse(jsonFormattedString);
  		Map<String, Object> jobj = org.jose4j.json.JsonUtil.parseJson(jsonFormattedString);
  		if (jobj != null) {
  			claim = jobj.get(claimName);
  		}
  
  		return claim;
  	}
docs: either from header or payload