cedric
10/04/2018, 6:26 PMJsonObject
that you walk downcedric
10/04/2018, 6:27 PMJsonArray
in the example aboveketurn
10/04/2018, 8:47 PMcedric
10/04/2018, 8:50 PMketurn
10/06/2018, 2:08 AMketurn
10/06/2018, 2:09 AMFloat
field if the document contains 2
instead of 2.0
keturn
10/06/2018, 2:09 AMcedric
10/06/2018, 2:29 AMketurn
10/06/2018, 2:31 AMketurn
10/06/2018, 2:39 AMJohn Davis
10/06/2018, 7:54 PMdata class MeasurementCondition(val name: String, val min: Float, val max: Float)
when I serialize it using Klaxon().toJsonString(foo)
it converts the numbers to strings, so I get
[{"max" : "2.0", "min" : "0.5", "name" : "VDD"}, {"max" : "2.2", "min" : "1.1", "name" : "m2"}]
instead of [{"max" : 2.0, "min" : 0.5, "name" : "VDD"}, {"max" : 2.2, "min" : 1.1, "name" : "m2"}]
is that expected?cedric
10/06/2018, 7:55 PMcedric
10/06/2018, 7:56 PMDefaultConverter
cedric
10/06/2018, 7:56 PMJohn Davis
10/06/2018, 7:56 PMcedric
10/10/2018, 6:42 PMcom.beust:klaxon-jackson:1.0.0
to JCentercedric
10/10/2018, 6:46 PMarve
10/10/2018, 7:05 PMKlaxon().parse()
would return null
? The signature is Klaxon.parse<T>(json:String): T?
, but I can't seem to convince it to throw a null at me 🤔jlleitschuh
10/10/2018, 7:16 PMParser
.cedric
10/10/2018, 7:18 PMcedric
10/10/2018, 7:18 PMcedric
10/10/2018, 7:18 PMcedric
10/10/2018, 8:43 PMjlleitschuh
10/10/2018, 8:43 PMcedric
10/10/2018, 8:43 PMcedric
10/10/2018, 8:44 PMjlleitschuh
10/10/2018, 8:44 PMcedric
10/10/2018, 8:44 PMcedric
10/10/2018, 8:45 PMjlleitschuh
10/10/2018, 8:45 PM--console=plain