Hi there, for kmm development, how to save json st...
# multiplatform
r
Hi there, for kmm development, how to save json string into a file? Is there any recommended library? I'm finishing up saving json into sqdelight, but the json string might be super big, so I want to save the json into a file, and save the absolute path of the file into database.
t
OKIO is mentioned there for filesystem operations, is there something specific you are missing from OKIO? (afaik it has full kmm support)
r
Thanks. I will try give it a try. I thought it's JVM only, so some platform might not working. My understanding was wrong
t
i also quadruple checked this to be sure yes, the docs are a bit confusing in that regard (especially looking at the subtitle being “A modern I/O library for Android, Kotlin, and Java.“)
r
There is a library called korio which is good but quite big so not so up to date. I ended up just wrapping the platform file ops with `expect`/`actual`