code: public static <T> T decode(String json, Class<T> cls) {
          return GSON.fromJson(json, cls);
      }
docs: Attempt to decode a JSON string as a Java object
  @param json The JSON string to decode
  @param cls The class to decode as
  @param <T> Class parameter
  @return An instance of {@code cls}, or an exception