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.kurento.kmf.jsonrpcconnector.JsonUtils.java

class JsonPropsAdapter implements JsonDeserializer<Props>, JsonSerializer<Props> {

    @Override
    public Props deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context)
            throws JsonParseException {

From source file com.kyloth.serleena.synchronization.kylothcloud.OutboundExperienceDataSerializer.java

/**
 * Serializer custom per serializzare una OutboundExperienceData in JSON
 *
 * @author Tobia Tesan <tobia.tesan@gmail.com>
 * @version 1.0.0
 */

From source file com.kyloth.serleena.synchronization.kylothcloud.OutboundRootSerializer.java

/**
 * Serializer custom per serializzare una OutboundRoot in JSON
 *
 * @author Tobia Tesan <tobia.tesan@gmail.com>
 * @version 1.0
 */

From source file com.kyloth.serleena.synchronization.kylothcloud.OutboundTelemetryEntitySerializer.java

/**
 * Struttura rappresentante una telemetria in entrata
 * @author Tobia Tesan <tobia.tesan@gmail.com>
 * @version 1.0.0
 */

From source file com.kyloth.serleena.synchronization.kylothcloud.UserPointSerializer.java

/**
 * Serializer custom per serializzare un UserPoint in JSON
 *
 * @author Tobia Tesan <tobia.tesan@gmail.com>
 * @version 1.0.0
 */

From source file com.l.notel.notel.org.redpin.android.json.BaseFingerprintTypeAdapter.java

/**
 * adapter for specific org.redpin.base.core.* type (it is needed to get always
 * a org.repin.server.standalone.core.* instance after deserialization
 * 
 * @see JsonSerializer
 * @see JsonDeserializer

From source file com.l.notel.notel.org.redpin.android.json.BaseLocationTypeAdapter.java

/**
 * adapter for specific org.redpin.base.core.* type (it is needed to get always
 * a org.repin.server.standalone.core.* instance after deserialization
 * 
 * @see JsonSerializer
 * @see JsonDeserializer

From source file com.l.notel.notel.org.redpin.android.json.BaseMapTypeAdapter.java

/**
 * adapter for specific org.redpin.base.core.* type (it is needed to get always
 * a org.repin.server.standalone.core.* instance after deserialization
 * 
 * @see JsonSerializer
 * @see JsonDeserializer

From source file com.l.notel.notel.org.redpin.android.json.BaseMeasurementTypeAdapter.java

/**
 * adapter for specific org.redpin.base.core.* type (it is needed to get always
 * a org.repin.server.standalone.core.* instance after deserialization
 * 
 * @see JsonSerializer
 * @see JsonDeserializer

From source file com.lion328.xenonlauncher.minecraft.launcher.json.data.type.DependencyNameTypeAdapter.java

public class DependencyNameTypeAdapter implements JsonSerializer<DependencyName>, JsonDeserializer<DependencyName> {

    @Override
    public JsonElement serialize(DependencyName dependencyName, Type type,
            JsonSerializationContext jsonSerializationContext) {
        return new JsonPrimitive(dependencyName.toString());