title: Jackson Object mapper to convert java map to json maintaining order of keys
body: <p>I am using <code>jackson.map.ObjectMapper</code> API to convert map to json string. I am using writeValueAsString method to achieve this.</p>
  
  <p>I pass a map sorted on the basis of values to <code>writeValueAsString</code> method. The JSON string which I get is resorted on the basis of keys.</p>
  
  <p>Is there a way to convert maps to JSON string using jackson without disturbing the order of items in the map.</p>
  
  <p>I tried setting <code>Feature.SORT_PROPERTIES_ALPHABETICALLY</code> to false, but as per documentation it is applicable only for POJO types.</p>
  
  <p>Any idea to implement the said behavior.</p>