Hasan Nagizade
02/21/2023, 12:00 PMVampire
02/21/2023, 12:07 PM&
question before. You probably had it in the URL or body of a HTTP request and without proper escaping it was interpreted as separator between two parameters and thus your JSON ended right before the ampersand and thus you got an EOF in the middle of a String literal.Hasan Nagizade
02/21/2023, 12:10 PM&
inside a json. UrlEncoder
helps to fix that but most of this symbols are not supported by UrlEncoder
. I am getting exact same error for them. so in order to avoid problems in future I decided to find a way to escape all this nowVampire
02/21/2023, 12:12 PMHasan Nagizade
02/21/2023, 12:13 PMVampire
02/21/2023, 12:14 PMHasan Nagizade
02/21/2023, 12:15 PMJson.encodeToString
to encode the model. I guess this is the problem thenVampire
02/21/2023, 12:20 PMHasan Nagizade
02/21/2023, 12:22 PMJson.decodeFromString
and send as parameter to composableVampire
02/21/2023, 12:33 PMdecodeFromString
. Where you get the argument from is where it most likely breaks.Stylianos Gakis
03/20/2023, 12:20 PM<http://android.net|android.net>.Uri.Builder
as far as I can tell) and makes it work with kotlinx.serialization + androidx.navigation.