title: Library to encode/decode from json to java.util.Map?
body: <p>Does anyone knows a java library that could easily encode java Maps into json objects and the other way around? </p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>For reasons couldn't explain  ( and I hate sometimes ) I can't use generics on my environment. </p>
  
  <p>What' I'm trying to do is to have something like this:</p>
  
  <pre><code>Map a = new HashMap();
  a.put( "name", "Oscar" );
  
  Map b = new HashMap();
  b.put( "name", "MyBoss"); 
  a.put( "boss",  b ) ;
  
  
  List list = new ArrayList();
  list.add( a );
  list.add( b );
  
  
   String json = toJson( list );
   // and create the json:
   /*
      [
         {
           "name":"Oscar",
           "boss":{
                "name":"MyBoss"
           }
          },
          {
              "name":"MyBoss"
          }
       ]
  
    */ 
  </code></pre>
  
  <p>And be able to have it again as a list of maps</p>
  
  <pre><code> List aList = ( List ) fromJson( jsonStirng );
  </code></pre>