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

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

Introduction

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

Usage

From source file com.ibasco.agql.protocols.valve.steam.webapi.adapters.StoreAppPcRequirementsDeserializer.java

/**
 * Special handler for properties that can either be an object or array.
 *
 * @see <a href="https://github.com/ribasco/async-gamequery-lib/issues/12">Issue #12</a>
 */
public class StoreAppPcRequirementsDeserializer implements JsonDeserializer<StoreAppPcRequirements> {

From source file com.ibm.common.activitystreams.internal.Adapter.java

/**
 * @author james
 * @version $Revision: 1.0 $
 */
public abstract class Adapter<T> implements JsonSerializer<T>, JsonDeserializer<T> {

From source file com.ibm.csync.internals.response.CSValueDeserializer.java

public class CSValueDeserializer implements JsonDeserializer<CSValue> {
    @Override
    public CSValue deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context)
            throws JsonParseException {

        if (json.isJsonObject()) {

From source file com.ibm.util.merge.json.DirectiveDeserializer.java

public class DirectiveDeserializer implements JsonDeserializer<AbstractDirective> {

    @Override
    public AbstractDirective deserialize(JsonElement json, Type directive, JsonDeserializationContext context) {
        int myType = json.getAsJsonObject().get("type").getAsInt();
        switch (myType) {

From source file com.ibm.util.merge.json.ProviderDeserializer.java

public class ProviderDeserializer implements JsonDeserializer<AbstractProvider> {

    @Override
    public AbstractProvider deserialize(JsonElement json, Type provider, JsonDeserializationContext context) {
        JsonElement jsonType = json.getAsJsonObject().get("type");
        if (jsonType == null) {

From source file com.ibm.watson.developer_cloud.speech_to_text.v1.deserializer.SpeechTimestampDeserializer.java

public class SpeechTimestampDeserializer implements JsonDeserializer<ArrayList<SpeechTimestamp>> {
    @Override
    public ArrayList<SpeechTimestamp> deserialize(JsonElement json, Type typeOfT,
            JsonDeserializationContext context) throws JsonParseException {
        ArrayList<SpeechTimestamp> list = new ArrayList<SpeechTimestamp>() {
        };

From source file com.ibm.watson.developer_cloud.speech_to_text.v1.deserializer.SpeechWordConfidenceDeserializer.java

public class SpeechWordConfidenceDeserializer implements JsonDeserializer<ArrayList<SpeechWordConfidence>> {
    @Override
    public ArrayList<SpeechWordConfidence> deserialize(JsonElement json, Type typeOfT,
            JsonDeserializationContext context) throws JsonParseException {
        ArrayList<SpeechWordConfidence> list = new ArrayList<SpeechWordConfidence>() {
        };

From source file com.ibm.watson.developer_cloud.util.DateDeserializer.java

/**
 * Date deserializer for different date format across all the Watson APIs.
 */
public class DateDeserializer implements JsonDeserializer<Date> {
    private static final String DATE_FROM_ALCHEMY = "yyyyMMdd'T'HHmmss";
    private static final String DATE_FROM_DIALOG = "yyyy-MM-dd HH:mm:ss";

From source file com.ibm.watson.discovery.v1.query.AggregationDeserializer.java

/**
 * Deserializer to transform JSON into a {@link QueryAggregation}.
 */
public class AggregationDeserializer implements JsonDeserializer<QueryAggregation> {

    private static final String TYPE = "type";

From source file com.idahokenpo.kenposchedule.data.serialization.WeekIdentifierDeserializer.java

/**
 *
 * @author Korey
 */
public class WeekIdentifierDeserializer implements JsonDeserializer<WeekIdentifier> {
    @Override