Thread
#serialization
    mbonnin

    mbonnin

    9 months ago
    Does
    Json.decodeFromStream(InputStream)
    close the inputStream for me or should I wrap in
    use {}
    ?
    Big Chungus

    Big Chungus

    9 months ago
    Not sure, try and see?
    Decode from stream then check if it's open
    mbonnin

    mbonnin

    9 months ago
    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