Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrong primitive array serialization with useClassMetadata(true) #149

Open
roli8200 opened this issue Aug 21, 2019 · 1 comment
Open

wrong primitive array serialization with useClassMetadata(true) #149

roli8200 opened this issue Aug 21, 2019 · 1 comment

Comments

@roli8200
Copy link

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.

@EugenCepoi
Copy link
Contributor

EugenCepoi commented Aug 22, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants