Idea for a Jackson-Transit module

39 views
Skip to first unread message

henry w

unread,
Oct 3, 2017, 7:38:13 AM10/3/17
to transit-format
I'm working mostly in javascript, consuming json produced by upstream java processes. 

These java process mostly use Jackson for serializing their pojos, and this means for example that fields that were java.util.Date objects arrive as non-decimal numbers, which i then need to process back into dates. Not great.

Jackson has this concept of modules, so for example there is a jsr-310 module which contains de/serializers for java.time.Instant and so on. To use this is a case of including a library and registering the module on startup.

If there was a Jackson-Transit module that went to/from the transit verbose-json format, I'd be much happier as a consumer and it'd be easy for the maintainers of my upstream processes to use this. Similarly for other consumers, if they're on the jvm they add Jackson-Transit and non-jvm consumers use existing Transit library for their platform.

FWIW I don't think getting these teams using plain Jackson to switch to Transit-Java would be an easy sell. On-the-wire efficiency isn't enough of a problem where I am. Ease and human-readability are important. Jackson comes bundled with stuff like Dropwizard and 'just works' out of the box.

I've done only a few hours work on this and got it going to/from pojos with just Date fields so far. 

Before going further, does anyone here have any thoughts or suggestions?

Thanks,
Henry



Reply all
Reply to author
Forward
0 new messages