code: public static Object toBean( JSONObject jsonObject, Class beanClass, Map classMap ) {
        JsonConfig jsonConfig = new JsonConfig();
        jsonConfig.setRootClass( beanClass );
        jsonConfig.setClassMap( classMap );
        return toBean( jsonObject, jsonConfig );
     }
docs: Creates a bean from a JSONObject, with a specific target class.<br>
  If beanClass is null, this method will return a graph of DynaBeans. Any
  attribute that is a JSONObject and matches a key in the classMap will be
  converted to that target class.<br>
  The classMap has the following conventions:
  <ul>
  <li>Every key must be an String.</li>
  <li>Every value must be a Class.</li>
  <li>A key may be a regular expression.</li>
  </ul>