public static LottieTask<LottieComposition> fromJsonInputStream(final InputStream stream, @Nullable final String cacheKey) {
    return cache(cacheKey, () -> fromJsonInputStreamSync(stream, cacheKey), () -> closeQuietly(stream));
  }
Auto-closes the stream.

@see #fromJsonInputStreamSync(InputStream, String, boolean)
lottie/src/main/java/com/airbnb/lottie/LottieCompositionFactory.java