title: Providing RESTful JSON API in Java
body: <p>What is the idiomatic way of providing RESTful JSON API in Java? Do you use JAX-WS and XML annotations (@XmlElement etc.)? How do you serialize annotated objects to JSON (using Jackson or similar library)? How do you separate domain objects from objects sent out to API?</p>
  
  <p>I know Java, I would like you to point me out to good resources and best practices about these topics.</p>
  
  <p>Thank you!</p>