Example usage for com.google.gson JsonSerializer interface-usage

List of usage examples for com.google.gson JsonSerializer interface-usage

Introduction

In this page you can find the example usage for com.google.gson JsonSerializer interface-usage.

Usage

From source file com.microsoft.azure.sdk.iot.service.sdk.DeviceSerializer.java

public class DeviceSerializer implements JsonSerializer<Device> {
    private class Authentication {
        private SymmetricKey symmetricKey;

        public Authentication(SymmetricKey symmetricKey) {
            this.symmetricKey = symmetricKey;

From source file com.microsoft.onenoteapi.service.DateTimeSerializer.java

public class DateTimeSerializer implements JsonSerializer<DateTime> {
    public JsonElement serialize(DateTime src, Type typeOfSrc, JsonSerializationContext context) {
        return new JsonPrimitive(src.toString());
    }
}

From source file com.microsoft.onenoteapi.service.PatchCommand.java

public class PatchCommand implements JsonSerializer<PatchCommand> {

    @SerializedName("Target")
    public String mTarget;
    @SerializedName("Action")
    public String mAction;

From source file com.microsoft.windowsazure.mobileservices.DateSerializer.java

/**
 * Date Serializer/Deserializer to make Mobile Services and Java dates
 * compatible
 */
@SuppressLint("SimpleDateFormat")
class DateSerializer implements JsonSerializer<Date>, JsonDeserializer<Date> {

From source file com.microsoft.windowsazure.mobileservices.LongSerializer.java

/**
 * Long Serializer to avoid losing precision when sending data to Mobile
 * Services
 */
class LongSerializer implements JsonSerializer<Long> {

From source file com.microsoft.windowsazure.mobileservices.table.serialization.DateSerializer.java

/**
 * Date Serializer/Deserializer to make Mobile Services and Java dates
 * compatible
 */
@SuppressLint("SimpleDateFormat")
public class DateSerializer implements JsonSerializer<Date>, JsonDeserializer<Date> {

From source file com.microsoft.windowsazure.mobileservices.table.serialization.LongSerializer.java

/**
 * Long Serializer to avoid losing precision when sending data to Mobile
 * Services
 */
public class LongSerializer implements JsonSerializer<Long> {

From source file com.mifos.utils.JsonDateSerializer.java

/**
 * Created by Rajan Maurya on 28,March,2016.
 */
public class JsonDateSerializer implements JsonSerializer<Date> {
    @Override
    public JsonElement serialize(Date src, Type typeOfSrc, JsonSerializationContext context) {

From source file com.mycompany.testeproject.serialization.GsonDateSerialization.java

/**
 *
 * @author enomurak
 */
public class GsonDateSerialization implements JsonSerializer<Date>, JsonDeserializer<Date> {

From source file com.myjeeva.digitalocean.serializer.DropletSerializer.java

/**
 * Serializer for droplet class
 * 
 * @author Jeevanandam M. (jeeva@myjeeva.com)
 * 
 * @since v2.0