Hacker News new | past | comments | ask | show | jobs | submit login

> 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/annotatio...




What about gson?


It's not a standard, just another implementation.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: