List of usage examples for com.google.gson JsonSerializer interface-usage
From source file com.nimbits.server.gson.serializer.NimbitsSerializer.java
public class NimbitsSerializer<T> implements JsonSerializer<T> { @Override public JsonElement serialize(final T src, final Type type, final JsonSerializationContext jsonSerializationContext) { final String j = GsonFactory.getInstance(true).toJson(src);
From source file com.nimbits.server.gson.serializer.PointSerializer.java
public class PointSerializer implements JsonSerializer<Point> { @Override public JsonElement serialize(Point src, Type type, JsonSerializationContext jsonSerializationContext) { final String j = GsonFactory.getInstance(true).toJson(src);
From source file com.nimbits.server.gson.UserSerializer.java
public class UserSerializer implements JsonSerializer<User> { @Override public JsonElement serialize(final User src, final Type type, final JsonSerializationContext jsonSerializationContext) { final String j = GsonFactory.getInstance().toJson(src);
From source file com.nimbits.server.gson.ValueSerializer.java
public class ValueSerializer implements JsonSerializer<Value> { @Override public JsonElement serialize(Value src, Type typeOfSrc, JsonSerializationContext context) { final String j = GsonFactory.getSimpleInstance().toJson(src); return new JsonPrimitive(j);
From source file com.onfido.JSON.java
class DateAdapter implements JsonSerializer<Date>, JsonDeserializer<Date> { private final ApiClient apiClient; /** * Constructor for DateAdapter *
From source file com.openalpr.api.invoker.JSON.java
class DateAdapter implements JsonSerializer<Date>, JsonDeserializer<Date> { private final ApiClient apiClient; /** * Constructor for DateAdapter *
From source file com.oracle.bdcs.bdm.client.JSON.java
class DateAdapter implements JsonSerializer<Date>, JsonDeserializer<Date> { private final ApiClient apiClient; /** * Constructor for DateAdapter *
From source file com.orange.client.githubimport.adapter.ISODateAdapter.java
/**
* Copyright (C) 2016 Orange
* <p>
* This software is distributed under the terms and conditions of the 'Apache-2.0'
* license which can be found in the file 'LICENSE' in this package distribution
* or at 'https://opensource.org/licenses/Apache-2.0'.
From source file com.otago.lecturerweb.utill.XMLGregorianCalendarGsonSerializer.java
/** * * @author Chandresh */ public class XMLGregorianCalendarGsonSerializer implements JsonDeserializer<XMLGregorianCalendar>, JsonSerializer<XMLGregorianCalendar> {
From source file com.payintech.smoney.toolbox.JodaDateTimeConverter.java
/**
* Implementation of the JsonSerializer and JsonDeserializer for the Joda DateTime.
*
* @author Pierre Adam
* @version 15.11
* @since 15.11