MichaelMalus
01/13/2019, 12:21 AMval samplemessage = json {
"decodes" to {
"ref" to 43989
"vrm" to "AV11LPR"
"frameID" to 12029991
"spacedVRM" to "AV11 LPR"
"seenCount" to 18
"cameraName" to "Test_MAV_IQ"
"decodeID" to 44606
"repeatedPlate" to false
"timeStamp" to
{"Time" to 1473670749
"ms" to 64
"LocalTime" to 1473677949}
"timeSync" to
{"timeMode" to 0
"lastSyncTime" to 1473062065
"lastSyncSource" to "SNTP"
"lastSyncInfo" to "192.53.103.108"}
"direction" to 126
"motion" to "towards"
"frameTimeRef" to 606284767
}
}
Shawn
01/13/2019, 1:19 AMShawn
01/13/2019, 1:19 AMShawn
01/13/2019, 1:20 AM"timeStamp" to
{"Time" to 1473670749
"ms" to 64
"LocalTime" to 1473677949}
doesn’t look like what you want, unless your json
builder can take a Pair<String, () -> Pair<String, Int>>
and automagically turn it into a json objectShawn
01/13/2019, 1:21 AMMichaelMalus
01/13/2019, 1:21 AMShawn
01/13/2019, 1:21 AMdecodes
field?Shawn
01/13/2019, 1:21 AMShawn
01/13/2019, 1:22 AMdecodes
at the top level is being mapped to a lambda, not another json objectMichaelMalus
01/13/2019, 1:24 AMMichaelMalus
01/13/2019, 1:28 AMMichaelMalus
01/13/2019, 1:28 AM