3 ms·
> 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 libr
by twic 10y ago
> 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:
http://docs.oracle.com/javaee/7/api/javax/xml/bind/annotation/package-summary.html http://docs.oracle.com/javaee/7/api/javax/xml/bind/annotatio...
- blackflame7000 10y agoWhat about gson?
- twic 10y agoIt's not a standard, just another implementation.
- deleted 10y ago[deleted]