*/
List<java.lang.reflect.Field> customEncodedProperties = ClassUtil.getAnnotatedFields(entity, com.apitrary.orm.core.annotations.Codec.class);
for (java.lang.reflect.Field field : customEncodedProperties) {
Class<? extends Codec> codecClazz = ClassUtil.getFieldAnnotationValue("value", field, com.apitrary.orm.core.annotations.Codec.class, Class.class);
Codec codec = (Codec) ClassUtil.newInstance(codecClazz);
Object value = ClassUtil.getValueOfField(field, entity);
String stringValue = codec.encode(value);
json = addNode(json, field.getName(), stringValue);
}
/*
* Perform entity refs