com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of java.lang.String out of START_OBJECT token at [Source: {"lastscan":"2017-01-04T02:21:33","7":{"name":"Kitchen door"},"8":{"name":"Kitchen table"}}; line: 1, column: 34] (through reference chain: java.util.LinkedHashMap["7"])

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • GitHub comment 334#272356412
    via GitHub by Fraid
    ,
  • GitHub comment 328#269687731
    via GitHub by Fraid
    ,
  • How to read subtype?
    via GitHub by gaydenko
    ,
  • angularjs - springboot - spring data/rest
    via Stack Overflow by ek1984
    ,
  • Deserializing nested json's with jackson
    via Stack Overflow by labbyfrost
    ,
  • Problem with type information
    via GitHub by WaDelma
    ,
  • Jackson doesn't deserialize
    via Stack Overflow by Yves Nicolas
    ,
    • com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of java.lang.String out of START_OBJECT token at [Source: {"lastscan":"2017-01-04T02:21:33","7":{"name":"Kitchen door"},"8":{"name":"Kitchen table"}}; line: 1, column: 34] (through reference chain: java.util.LinkedHashMap["7"]) at com.fasterxml.jackson.databind.JsonMappingException.from(JsonMappingException.java:148) at com.fasterxml.jackson.databind.DeserializationContext.mappingException(DeserializationContext.java:857) at com.fasterxml.jackson.databind.deser.std.StringDeserializer.deserialize(StringDeserializer.java:62) at com.fasterxml.jackson.databind.deser.std.StringDeserializer.deserialize(StringDeserializer.java:11) at com.fasterxml.jackson.databind.deser.std.MapDeserializer._readAndBindStringMap(MapDeserializer.java:495) at com.fasterxml.jackson.databind.deser.std.MapDeserializer.deserialize(MapDeserializer.java:341) at com.fasterxml.jackson.databind.deser.std.MapDeserializer.deserialize(MapDeserializer.java:26) at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3736) at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2764) at org.mycontroller.restclient.core.DefaultClientResponse.parse(DefaultClientResponse.java:74) at org.mycontroller.restclient.core.DefaultClientResponse.getEntity(DefaultClientResponse.java:105) at org.mycontroller.standalone.gateway.philipshue.PhilipsHueGatewayPoller.run(PhilipsHueGatewayPoller.java:105) at java.lang.Thread.run(Thread.java:745)

    Users with the same issue

    Unknown visitor1 times, last one,
    jstrayer
    jstrayer1 times, last one,
    zsamboki
    zsamboki3 times, last one,
    Axelo
    Axelo1 times, last one,
    Luka
    Luka1 times, last one,
    139 more bugmates