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

roborative

04/26/2017, 8:55 PM
I've created a custom deserializer and am using @JsonDeserialize to attempt to use it like so:
Copy code
data class Diagnosis(@JsonIgnore @Id val id: ObjectId? = null,
                     @JsonProperty("apuid") val apuId: Int,
                     @JsonProperty("RecordID") val recordId: String,
                     @Indexed val patientId: String,
                     val patientAccountNo: String,
                     val encounterId: String,
                     val encounterDate: LocalDate,
                     @JsonProperty("ProviderNPI") val providerNpi: String?,
                     @JsonProperty("ICDCode") val icdCode: String?,
                     val name: String,
                     @JsonDeserialize(contentUsing = LenientLocalDateDeserializer::class) @JsonFormat(pattern = "M/d/yyyy") val assessmentOnsetDate: LocalDate?)
2 Views