Hello, any suggestion on open a local `.json` file...
# kotlin-native
g
Hello, any suggestion on open a local
.json
file and parsing into a model for an android/ios library? I just saw for the parsing i could use
kotlinx.serialization
and for opening the file within the project? Any other
kotlinx
project?
o
It’s cooking. Not yet ready for production.
But you can always have an
expect fun readMyFile()
and easily implement it for each platform using native APIs
g
Yeah i know, but since is the same file i wanted to unify within the KN library. Thanks for the answer.