com.statsig.internal.GsonUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of javacore Show documentation
Show all versions of javacore Show documentation
A feature gating and a/b testing java library for statsig
The newest version!
package com.statsig.internal;
import com.google.gson.*;
import java.lang.reflect.Type;
import java.util.HashMap;
import java.util.Map;
public class GsonUtil {
private static final Gson gson = new GsonBuilder()
.registerTypeAdapter(Map.class, new MapDeserializer())
.create();
public static Gson getGson() {
return gson;
}
static class MapDeserializer implements JsonDeserializer