Example usage for com.fasterxml.jackson.databind.jsontype TypeSerializer writeTypePrefixForArray

List of usage examples for com.fasterxml.jackson.databind.jsontype TypeSerializer writeTypePrefixForArray

Introduction

In this page you can find the example usage for com.fasterxml.jackson.databind.jsontype TypeSerializer writeTypePrefixForArray.

Prototype

public abstract void writeTypePrefixForArray(Object paramObject, JsonGenerator paramJsonGenerator);

Source Link

Usage

From source file:com.basistech.rosette.dm.jackson.array.ListAttributeArraySerializer.java

@Override
public void serializeWithType(ListAttribute value, JsonGenerator jgen, SerializerProvider provider,
        TypeSerializer typeSer) throws IOException {
    typeSer.writeTypePrefixForArray(value, jgen);
    jgen.writeString(KnownAttribute.getAttributeForClass(value.getItemClass()).key());
    writeItems(value, jgen, provider);/* w  ww  .  j a  v a  2 s .co m*/
    writeExtendedProperties(value, jgen);
    typeSer.writeTypeSuffixForArray(value, jgen);
}