Thread
#serialization
    Rodrigo Silva

    Rodrigo Silva

    1 year ago
    Hello all, i'm trying to use kotlinx, but i'm getting this error:
    kotlinx.serialization.SerializationException: Serializer for class 'Immobile' is not found.
    Mark the class as @Serializable or provide the serializer explicitly.
    my config:
    import kotlinx.serialization.*
    
    @Serializable
    data class Immobile(
      val test: String
    )
    fun Route.webProperties() {
      route("/home") {
        post {
          val properties = call.receive<Immobile>()
          call.respond(properties)
        }
      }
    }
    install(ContentNegotiation) {
      json()
    }
    j

    jaqxues

    1 year ago
    Did you apply the plugin?
    Rodrigo Silva

    Rodrigo Silva

    1 year ago
    OMG... thank you.. i forgot. Sorry.