All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jn.agileway.codec.serialization.json.JacksonCodec Maven / Gradle / Ivy

Go to download

Provide an unified codec API for hession, kryo, protostuff, fst, fes, xson, cbor, jackson, json, etc....

There is a newer version: 3.1.12
Show newest version
package com.jn.agileway.codec.serialization.json;

import com.fasterxml.jackson.core.JsonFactory;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.jn.agileway.codec.serialization.jackson.BasedJacksonCodec;

public class JacksonCodec extends BasedJacksonCodec {
    public JacksonCodec() {
        super(new ObjectMapper(new JsonFactory()));
    }

    public JacksonCodec(ClassLoader classLoader) {
        super(createObjectMapper(classLoader, new ObjectMapper(new JsonFactory())));
    }

    public JacksonCodec(ClassLoader classLoader, JacksonCodec codec) {
        super(createObjectMapper(classLoader, codec.objectMapper.copy()));
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy