You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@johnzon.apache.org by GitBox <gi...@apache.org> on 2019/04/03 13:09:20 UTC

[GitHub] [johnzon] kalgon edited a comment on issue #39: Deserialization of primitives

kalgon edited a comment on issue #39: Deserialization of primitives
URL: https://github.com/apache/johnzon/pull/39#issuecomment-479474718
 
 
   Well, I first took a look at what you did for serialization (DynamicMappingGenerator) but was unable to do the same for deserialization. I had to change the signature of ObjectConverter.Reader because the only places where I could find Deserializers are JohnzonBuilder and JsonbAccessMode (where they are converted into ObjectConverter.Readers which need a JsonObject and not a JsonValue).
   
   About the serialization, I added some more tests (in MoreTests) which are still failing if you uncomment some of the annotations. I was wondering, if you have a json property of type X[] or List<X> and you specify a JsonbSerializer on that property, on what type does the serializer act? on X or on X[]/List<X> ?
   
   Concerning the ParameterizedType, on one of my projects, I had some abstract Jsonb(De)Serializers and johnzon was complaining that they did not implement the correct interfaces (because it was only looking for the PT on the concrete class only).

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services