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

org.minijax.json.JsonFeature Maven / Gradle / Ivy

There is a newer version: 0.5.10
Show newest version
package org.minijax.json;

import javax.ws.rs.core.Feature;
import javax.ws.rs.core.FeatureContext;

public class JsonFeature implements Feature {

    @Override
    public boolean configure(final FeatureContext context) {
        context.register(Json.getObjectMapper());
        context.register(MinijaxJsonReader.class);
        context.register(MinijaxJsonWriter.class);
        context.register(MinijaxJsonExceptionMapper.class);
        return true;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy