Join Slack
Powered by
Does `Json.decodeFromStream(InputStream)` close th...
# 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?
Big Chungus
12/07/2021, 3:22 PM
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
23
Views
Open in Slack
Previous
Next