u?","date":1536667747,"request":null,"suggestions":null}, {}, {} ],"status":"ok"}
data class Message(val message_id: Int, val user_id: String, val bot : Boolean, val text : String, val date : Long, val request : String, val suggestions : String)
data class MessagesResult(@JsonProperty("result") val messages : List<Message>)
Ошибка:
System.err: com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of com.opet.MessagesResult out of START_ARRAY token
at [Source: (okhttp3.ResponseBody$BomAwareReader); line: 1, column: 11] (through reference chain: com.opet.ResultResponse["result"])
http://www.jsonschema2pojo.org
там ошибка есть, лишняя скобка "}", тут (....{} }],"status":"ok"})
Обсуждают сегодня