kalgon commented 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 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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to