title: Flexjson unable to deserialize LinkedHashMap
body: <p>I am deserialising a json object as below</p>
  
  <pre><code> {
       "b":"value1",
       "a":"value2",
       "d":"value3",
       "c":"value4",
       "f":"value5",
       "e":"value6"
   }
  </code></pre>
  
  <p>But i am getting ClassCastException as below</p>
  
  <pre><code> java.lang.ClassCastException: java.util.HashMap cannot be cast to java.util.LinkedHashMap
  </code></pre>
  
  <p>My deserialisation code is</p>
  
  <pre><code>LinkedHashMap&lt;String, String&gt; map = new JSONDeserializer&lt;LinkedHashMap&lt;String, String&gt;&gt;().deserialize(JSONstring);
  </code></pre>
  
  <p>But when i use HashMap instead of LinkedHashMap it works but output gets sorted as below (Its not original order).</p>
  
  <pre><code> {
       a=value2, 
       b=value1, 
       c=value4, 
       d=value3, 
       e=value6, 
       f=value5
   }
  </code></pre>
  
  <p>I want to get the output in original order.
  I found this related link
   <a href="https://stackoverflow.com/questions/17519228/flex-json-unable-to-properly-serialize-deserialize-linkedhashmap">Flex JSON unable to properly serialize/deserialize LinkedHashMap</a>
  but didn't get how to use ObjectFactory.</p>
  
  <p>I would appreciate any help!</p>
  
  <p>Thanks in advance!</p>