Android Kotlin: Serialize string to json string with Gson
Advertisements Giving a string, I’d like to format it as json string with Gson. What I expect is from "email" to get "{"email" : "$email"}" I can obviously do fun serializeUserEmail(email: String): String { return "{\"email\" : \"$email\"}" } and this is what I’m currently doing, and of course I could also create an "Email"… Read More Android Kotlin: Serialize string to json string with Gson