List of usage examples for com.google.gson JsonDeserializer interface-usage
From source file com.datascience.gal.DawidSkeneDeserializer.java
/**
* deserialization for arbitrary ds classes TODO: doesnt work yet
*
* @author josh
*
*/
From source file com.davis.bluefolder.deserializers.DateDeserializer.java
/**
* This software was created for
* All rights to this software belong to
* appropriate licenses and restrictions apply.
* Created by Samuel Davis on 7/5/16.
* Class Description
From source file com.daxstudio.sa.base.model.jsr310.ZonedDateTimeJsonConverter.java
/** * GSON serialiser/deserialiser for converting {@link ZonedDateTime} objects. */ public class ZonedDateTimeJsonConverter implements JsonSerializer<ZonedDateTime>, JsonDeserializer<ZonedDateTime> { /** Formatter. */ private final DateTimeFormatter mDateTimeFormatter;
From source file com.denimgroup.threadfix.remote.response.ByteToStringSerializer.java
/** * Created by mac on 1/29/14. */ public class ByteToStringSerializer implements JsonSerializer<byte[]>, JsonDeserializer<byte[]> { @Override
From source file com.denimgroup.threadfix.remote.response.CalendarSerializer.java
/** * Created by mac on 1/23/14. */ public class CalendarSerializer implements JsonSerializer<Calendar>, JsonDeserializer<Calendar> { @Override
From source file com.denimgroup.threadfix.remote.response.DateSerializer.java
/** * Created by mac on 1/23/14. */ public class DateSerializer implements JsonSerializer<Date>, JsonDeserializer<Date> { @Override
From source file com.devbury.mkremote.api.MacroListResponsePacketDeserializer.java
public class MacroListResponsePacketDeserializer implements JsonDeserializer<MacroListResponsePacket> { @Override public MacroListResponsePacket deserialize(JsonElement json, Type t, JsonDeserializationContext context) throws JsonParseException { MacroListResponsePacket r = new MacroListResponsePacket(); ArrayList<String> names = new ArrayList<String>();
From source file com.devbury.mkremote.api.QuickLaunchListResponsePacketDeserializer.java
/** * For some reason there is a different class loader that is being used and it can't find nested classes. We deserialize * the whole class to make sure the right class loader is used. This is a hack and I would like to remove this some day * after I better understand the classloader problem. */ public class QuickLaunchListResponsePacketDeserializer implements JsonDeserializer<QuickLaunchListResponsePacket> {
From source file com.eclipsesource.connect.serialization.IdTypeAdapter.java
public class IdTypeAdapter implements JsonSerializer<Id>, JsonDeserializer<Id> { @Override public JsonElement serialize(Id src, Type typeOfSrc, JsonSerializationContext context) { return new JsonPrimitive(src.toString()); }
From source file com.edu.mum.hbs.restapi.util.LocalTimeConverter.java
/** * GSON serialiser/deserialiser for converting {@link LocalTime} objects. */ public class LocalTimeConverter implements JsonSerializer<LocalTime>, JsonDeserializer<LocalTime> { /** Formatter. */ private static final DateTimeFormatter FORMATTER = DateTimeFormatter.ISO_LOCAL_TIME;