public void append(Appendable buf, Object pojo) throws IOException {
JsonSerializer.append(buf, pojo);
}
private static String getPropertyName(Method setter) {
JsonProperty property = setter.getAnnotation(JsonProperty.class);
if (property == null) {
String name = setter.getName();
if (name.startsWith("set") && !Modifier.isStatic(setter.getModifiers())) {
return name.substring(3, 4).toLowerCase() + name.substring(4);
}
return null;
} else {
return property.value();
}
}