• Riccardo Montagnin

    Riccardo Montagnin

    3 years ago
    Hello everyone! Is there an option to force keys to be sorted alphabetically before the serialization?
    Riccardo Montagnin
    r
    +1
    15 replies
    Copy to Clipboard
  • turansky

    turansky

    3 years ago
    Is there possibility to specify custom discriminator for class?
    turansky
    1 replies
    Copy to Clipboard
  • a

    Antanas A.

    3 years ago
    Hi, when using directly JsonObject is there any way to detect if a given property is string? and get result? eg val json:JsonObject; json["propertyStr"]?.primitive.stringOrNull ? I can see that there is booleanOrNull doubleOrNull but no stringOrNull, tried toString() but it produces quoted string
    a
    r
    6 replies
    Copy to Clipboard
  • Riccardo Montagnin

    Riccardo Montagnin

    3 years ago
    Hello everyone. How can I serialize a
    Map<String, Any>
    ?
    Riccardo Montagnin
    s
    5 replies
    Copy to Clipboard
  • Steven

    Steven

    3 years ago
    Here is an example of what the API sends me:
    Steven
    Robert Jaros
    2 replies
    Copy to Clipboard
  • a

    Antanas A.

    3 years ago
    Hi, Is it possible to enumerate all classes which contain
    Serializable
    annotation at runtime? Maybe kotlin serializer stores this information in some hash map which can be accessed? I want find an appropriate serializer by knowing only full class name, or this can be done using reflection only?
    a
    c
    2 replies
    Copy to Clipboard
  • r

    ribesg

    3 years ago
    Is there a way to obfuscate some fields when serializing a model for logging?
    r
    Nikky
    +1
    6 replies
    Copy to Clipboard
  • p

    pardom

    3 years ago
    Perhaps this?
    setListMapper(Long::class, Long.serializer())
    p
    kgonyon
    5 replies
    Copy to Clipboard
  • Konstantin Tskhovrebov

    Konstantin Tskhovrebov

    3 years ago
  • r

    Rainer Schlonvoigt

    3 years ago
    this doesn't seem to work, are there better alternatives? do i really need to make the field a string that just coincidentally is a byte array?
    r
    s
    2 replies
    Copy to Clipboard