> to teach my class how to serialize itself into JSON, I can compile com.fasterxml.jackson annotations into it, but by doing so I've made a particular JSON library a dependency of myproject-datatypes
Right, because at the moment, there is no standard cross-library convention for that. One day, there will be, as there is for serializing to XML:
Right, because at the moment, there is no standard cross-library convention for that. One day, there will be, as there is for serializing to XML:
http://docs.oracle.com/javaee/7/api/javax/xml/bind/annotatio...