title: make jackson serialize set as list
body: <p>On my server side I use Hibernate to retrieve data to Set , I don't want to use List on server side.</p>
  
  <p>I'm using @OrderBy annotation, so my sets are ordered on server.</p>
  
  <p>However, when I send my data to browser, and parse JSON my sets become unordered in javascript.
  Can I somehow configure jackson ObjectMapper, or use some annotation to serialize my Sets as Lists ?</p>
  
  <p>It only needs to change {} to [] in</p>
  
  <p>I know I can create another DTO, but that's a lot of boilerplate.</p>
  
  <p>Is there some flag or annotation that could trigger such behaviour?</p>
  
  <p>EDIT:</p>
  
  <p>let's say I've got:</p>
  
  <p>{"a","b","c","d"}</p>
  
  <p>on server side produced by my code, and that's sent to browser. 
  browser would receive same content, but when I evaluate it (eval(...)),
  browser don't treat that as string, but as map.</p>
  
  <p>And when I iterate that map it's unordered.</p>
  
  <p>If browser would receive array, that is:</p>
  
  <p>["a","b","c","d"]</p>
  
  <p>after evaluation in browser it would still be sorted;</p>
  
  <p>I want JACKSON to just use [] instead of {} for sets.</p>
  
  <p>Hope I'm more clear now</p>