Skip to content

wrong primitive array serialization with useClassMetadata(true) #149

@roli8200

Description

@roli8200

When serializing a array of primitives int[], String[], byte[], etc. the expected output should be something like:

{ "@class":"int[]","data":[2,25,10]  }

instead i get this

[
  2,
  25,
  10,
]

or for byte[]
{ "@class":"byte[]",data:"3JugnGCdJJ3onqyf..." }
i get this

"3JugnGCdJJ3onqyf.......

Since these (arrays) are not real classes, direct naming of a class is difficult, but there should still be a (syntetic) annotation that describes the data type exactly, since these must also be deserialized correctly again, especially in terms of polymorphic deserialization.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions