use of com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable in project torodb by torodb.
the class DescriptionFactoryWrapper method expectArrayFormat.
@Override
public JsonArrayFormatVisitor expectArrayFormat(JavaType convertedType) {
final JsonPointer jsonPointer = getJsonPointer();
return new JsonArrayFormatVisitor.Base(getProvider()) {
@Override
public void itemsFormat(JsonFormatVisitable handler, JavaType elementType) throws JsonMappingException {
SerializerProvider p = getProvider();
JsonSerializer<Object> s = p.findValueSerializer(elementType);
s.acceptJsonFormatVisitor(new DescriptionFactoryWrapper(DescriptionFactoryWrapper.this, jsonPointer.append(JsonPointer.valueOf("/<index>")), p), elementType);
}
};
}
Aggregations