protected void _checkResultType(Class<?> valueType, Object ob)
throws JSONObjectException
{
if (ob != null) {
if (!valueType.isAssignableFrom(ob.getClass())) {
throw new JSONObjectException("Simple JSON can only bind given JSON as "
+ob.getClass().getName()+", not as "+valueType.getName());
}
}
}