GSON JSON parsing based on Generic return?

public static<K> K fromJSON(String jsonData) {
   return OpenRedisJSON.gson.fromJson(jsonData, K.class); // want something like this.
}
Was this page helpful?