io.polyapi.commons.internal.json.RawValueDeserializer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of commons Show documentation
Show all versions of commons Show documentation
Java client library for PolyAPI
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();
}
}