title: How to serialize nested objects limiting depth of serialization?
body: <p>There is a simple POJO - <code>Category</code> with <code>Set&lt;Category&gt;</code> as subcategories inside. Nesting might be quite deep as each of subcategories may contain sub-subcategories and so on.
  I would like to return <code>Category</code> as REST resource via jersey, serialized to json (by jackson). The problem is, I can't really limit depth of serialization thus all the category tree gets serialized. </p>
  
  <p>Is there any way to stop jackson serializing object just right after first level is completed (ie. <code>Category</code> with its first-level subcategories)?</p>