throw new UnmarshallException("can't assign null primitive");
}
ISerializer s = getSerializer(clazz, json.getClass());
if (s != null) {
return s.tryUnmarshall(state, clazz, json);
}
// As a last resort, we check if the object is in fact an instance of the
// desired class. This will typically happen when the parameter is of
// type java.lang.Object and the passed object is a String or an Integer
// that is passed verbatim by JSON