https://kotlinlang.org logo
#jackson-kotlin
Title
# jackson-kotlin
h

hho

04/01/2019, 11:13 AM
Is it possible to deserialize a Kotlin
object
, i.e. returning always the same instance for a certain
JsonSubTypes.Type
?
d

diesieben07

04/01/2019, 11:15 AM
Copy code
object Foo {
  @JvmStatic
  @JsonCreator
  fun fromJson() = Foo
}
Should work, but that's just from memory
h

hho

04/01/2019, 11:16 AM
That works perfectly, thank you very much
4 Views