https://kotlinlang.org logo
#serialization
Title
# serialization
m

mbonnin

12/07/2021, 3:09 PM
Does
Json.decodeFromStream(InputStream)
close the inputStream for me or should I wrap in
use {}
?
b

Big Chungus

12/07/2021, 3:22 PM
Not sure, try and see?
Decode from stream then check if it's open
m

mbonnin

12/07/2021, 3:41 PM
Looks like it's doing something in between and requires a trailing EOF but doesn't close: https://github.com/Kotlin/kotlinx.serialization/issues/1789
18 Views