com.fasterxml.jackson.databind.ser.std.StdKeySerializer.java Source code

Java tutorial

Introduction

Here is the source code for com.fasterxml.jackson.databind.ser.std.StdKeySerializer.java

Source

package com.fasterxml.jackson.databind.ser.std;

import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.SerializerProvider;
import java.util.Date;

public class StdKeySerializer extends StdSerializer<Object> {
    static final StdKeySerializer instace = new StdKeySerializer();

    public StdKeySerializer() {
        super(Object.class);
    }

    public void serialize(Object paramObject, JsonGenerator paramJsonGenerator,
            SerializerProvider paramSerializerProvider) {
        if ((paramObject instanceof Date)) {
            paramSerializerProvider.defaultSerializeDateKey((Date) paramObject, paramJsonGenerator);
            return;
        }
        paramJsonGenerator.writeFieldName(paramObject.toString());
    }
}

/* Location:           /Users/dantheman/src/fffffffffattttt/basis/classes_dex2jar.jar
 * Qualified Name:     com.fasterxml.jackson.databind.ser.std.StdKeySerializer
 * JD-Core Version:    0.6.2
 */