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

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

Introduction

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

Prototype

public abstract void writeTypeSuffixForArray(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);//from w ww .j  av  a 2s . c o m
    writeExtendedProperties(value, jgen);
    typeSer.writeTypeSuffixForArray(value, jgen);
}