code: public static Map getProperties( JSONObject jsonObject ) {
        Map properties = new HashMap();
        for( Iterator keys = jsonObject.keys(); keys.hasNext(); ){
           String key = (String) keys.next();
           /*
            * String parsedKey = key; if( !JSONUtils.isJavaIdentifier( parsedKey ) ){
            * parsedKey = JSONUtils.convertToJavaIdentifier( key ); }
            */
           properties.put( key, getTypeClass( jsonObject.get( key ) ) );
        }
        return properties;
     }
docs: Creates a Map with all the properties of the JSONObject.