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.
OKIO is mentioned there for filesystem operations, is there something specific you are missing from OKIO? (afaik it has full kmm support)
r
Randy Tang
02/28/2023, 2:20 PM
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
Thomas Urbanitsch
03/01/2023, 7:41 AM
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
Robert Munro
03/01/2023, 8:06 AM
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`