com.fasterxml.jackson.core.JsonGenerationException: Current context not Array but Object

GitHub | szaccaria | 7 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    GitHub comment 19#250904810

    GitHub | 7 months ago | szaccaria
    com.fasterxml.jackson.core.JsonGenerationException: Current context not Array but Object

    Root Cause Analysis

    1. com.fasterxml.jackson.core.JsonGenerationException

      Current context not Array but Object

      at com.fasterxml.jackson.core.JsonGenerator._reportError()
    2. Jackson-core
      WriterBasedJsonGenerator.writeEndArray
      1. com.fasterxml.jackson.core.JsonGenerator._reportError(JsonGenerator.java:1897)
      2. com.fasterxml.jackson.core.json.WriterBasedJsonGenerator.writeEndArray(WriterBasedJsonGenerator.java:233)
      2 frames
    3. Jackson
      ObjectWriter.writeValueAsString
      1. com.fasterxml.jackson.databind.ser.std.ObjectArraySerializer.serialize(ObjectArraySerializer.java:217)
      2. com.fasterxml.jackson.databind.ser.std.ObjectArraySerializer.serialize(ObjectArraySerializer.java:26)
      3. com.fasterxml.jackson.databind.ser.DefaultSerializerProvider.serializeValue(DefaultSerializerProvider.java:292)
      4. com.fasterxml.jackson.databind.ObjectWriter$Prefetch.serialize(ObjectWriter.java:1419)
      5. com.fasterxml.jackson.databind.ObjectWriter._configAndWriteValue(ObjectWriter.java:1147)
      6. com.fasterxml.jackson.databind.ObjectWriter.writeValueAsString(ObjectWriter.java:1020)
      6 frames
    4. com.cesaco.jackson
      Test.main
      1. com.cesaco.jackson.Test.main(Test.java:25)
      1 frame