code: @Nullable
      public static <T> T getJson(@NonNull SharedPreferences prefs,
              @NonNull String key, @NonNull Class<T> clazz) {
          return getJson(prefs, key, (Type) clazz);
      }
docs: Retrieves object stored as json encoded string.
  Gson library should be available in classpath.