} else if (jsonElement.isNumber()) {
return jsonElement.asInt() > 0;
} else if (jsonElement.isPrimitive()) {
return Boolean.valueOf(jsonElement.asString());
} else {
throw new JsonTypeMismatchException("expected primitive value but was " + jsonElement.type());
}
}
}