
com.github.segmentio.utils.GSONUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of analytics Show documentation
Show all versions of analytics Show documentation
The analytics API you've always wanted.
The newest version!
package com.github.segmentio.utils;
import com.github.segmentio.gson.BasePayloadTypeAdapter;
import com.github.segmentio.gson.DateTimeTypeConverter;
import com.github.segmentio.models.BasePayload;
import com.google.gson.GsonBuilder;
import org.joda.time.DateTime;
public class GSONUtils {
public static final GsonBuilder BUILDER = new GsonBuilder()
.registerTypeAdapter(DateTime.class, new DateTimeTypeConverter())
.registerTypeAdapter(BasePayload.class, new BasePayloadTypeAdapter());
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy