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

io.polyapi.commons.internal.json.RawValueDeserializer Maven / Gradle / Ivy

There is a newer version: 0.15.3
Show newest version
package io.polyapi.commons.internal.json;

import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.JsonDeserializer;

import java.io.IOException;

public class RawValueDeserializer extends JsonDeserializer {
    @Override
    public String deserialize(JsonParser parser, DeserializationContext context) throws IOException {
        return context.readTree(parser).toString();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy