Jackson JSON User Group

JSON in Java the Right Way -- Action, Jackson!

Latest Activity

Profile Icon
Tatu Saloranta replied to Jeff Andrews's discussion 'Customer Deserializer for all objects of base type'
If you just need a specific serializer or deserializer for specific property, you can just use @JsonSerialize(using=MySerializer.class) and @JsonDeserialize(using=MyDeserializer)?
11 hours ago
Profile Icon
ThumbnailThumbnail
Fredrik Bromee and Jeff Andrews joined Jackson JSON User Group 14 hours ago
Profile Icon

Customer Deserializer for all objects of base type

I thought I was close, but it seems I am still so far off.I have a base class, "BaseEntity",  that I want to have serialize one attribute for all subclasses.  Let's call the key/attribute "id".  It comes in from JSON as a String but I need to convert it to a more complex object, call it CustomId.  What is the best way to create a custom Deserializer that will handle this conversion for all objects of type "BaseEntity"?  Also, the key/attribute is not a member variable, but rather a key/value…See More
Discussion posted by Jeff Andrews 17 hours ago
Profile Icon
Glenn A. Thompson replied to Glenn A. Thompson's discussion 'How to serialize list of beans as list of arrays with indexes specified'
Cool.  Thanks for the info.  I'll move future discussion to dev list.
Friday
Profile Icon
Tatu Saloranta replied to Chris's discussion 'Initial performance hit'
Performance hit initially is due to multiple factors, some general, and other perhaps Android specific: Construction of serializers, deserializers does make heavy use of introspection, including annotation lookups. Disabling annotation…
Friday
Profile Icon
Tatu Saloranta replied to Glenn A. Thompson's discussion 'How to serialize list of beans as list of arrays with indexes specified'
I think the first place to look into would be 'BeanSerializerModifier', which can do things like reorder properties. But you would also need to replace serializer(s) most likely. Also: now that Jackson 2.0 work is underway it is probably…
Friday
Profile Icon

Initial performance hit

I'm currently looking into the Jackson parser for use in an Android application. The big appeal is the removal of hand written serialization\deserialization code and the talk of how much faster the library is compared to the standard Android parser.However on the tests I've ran I seem to get a massive performance hit when the ObjectMapper is initially called to deserialize a JSON response. Performance improves on each subsequent call. I imagine there’s some form of reflection going on to build…See More
Discussion posted by Chris Friday
Profile Icon
Chris is now a member of Jackson JSON User Group Friday

[SPACE FOR SALE -- AdBrite sucks!]

Members

  • Tatu Saloranta
  • Fredrik Bromee
  • Jeff Andrews
  • Chris
  • Glenn A. Thompson
  • Morten Krogh Andersen
  • Darren Clarke
  • Slava Yu
  • Jim O'Hara
  • Casey Dement
  • prabu bala
  • keith hennessy
  • Andrei Pozolotin
  • Pavel
  • Mark Hellkamp
  • victor
 

Forum

 
 
 

© 2012   Created by Tatu Saloranta.   Powered by .

Badges  |  Report an Issue  |  Terms of Service