List of usage examples for com.google.gson JsonSerializer interface-usage
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.devonfw.module.i18n.common.util.BundleMapSerializer.java
/**
* TODO kugawand This type ...
*
* @author kugawand
* @since dev
*/
From source file com.dmdirc.addons.ui_web2.serialisers.BackBufferSerializer.java
/** * Serializes {@link BackBuffer}s. */ public class BackBufferSerializer implements JsonSerializer<BackBuffer> { @Override
From source file com.dmdirc.addons.ui_web2.serialisers.BackBufferSimpleSerializer.java
/** * Serializes a {@link BackBuffer} without including the full content. */ public class BackBufferSimpleSerializer implements JsonSerializer<BackBuffer> { @Override
From source file com.dmdirc.addons.ui_web2.serialisers.WindowModelSerialiser.java
/** * Serialises {@link WindowModel}s. */ public class WindowModelSerialiser implements JsonSerializer<WindowModel> { private final WindowManager windowManager;
From source file com.drguildo.bm.DateSerializer.java
public class DateSerializer implements JsonSerializer<Date> { @Override public JsonElement serialize(Date src, Type typeOfSrc, JsonSerializationContext context) { return new JsonPrimitive(src.getTime()); } }
From source file com.drguildo.bm.TagsSerializer.java
public class TagsSerializer implements JsonSerializer<Tags> { @Override public JsonElement serialize(Tags src, Type typeOfSrc, JsonSerializationContext context) { JsonArray fuckThisShit = new JsonArray(); for (String tag : src.toList()) { fuckThisShit.add(new JsonPrimitive(tag));
From source file com.ec2box.manage.util.SessionOutputSerializer.java
public class SessionOutputSerializer implements JsonSerializer<Object> { @Override public JsonElement serialize(Object src, Type typeOfSrc, JsonSerializationContext context) { JsonObject object = new JsonObject(); if (typeOfSrc.equals(AuditWrapper.class)) { AuditWrapper auditWrapper = (AuditWrapper) src;
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()); }