Re: [json-lib-user] Using toBean with a targetBean that has a property of class Set
Brought to you by:
aalmiray
From: Andres A. <aal...@ya...> - 2007-12-09 03:45:06
|
I believe Json-lib doesn't support Sets as it should (at least Lists are covered), please raise an issue on the issue tracker. Cheers, Andres ----- Original Message ---- From: Jonathan <jso...@ki...> To: jso...@li... Sent: Saturday, December 8, 2007 7:39:11 PM Subject: [json-lib-user] Using toBean with a targetBean that has a property of class Set I have a class (BeanA) that has getters/setters for a java.util.Set (itemsB). I have no problem using JSONObject.fromObject to get a JSONObject. However, if I want to create an instance of the class by using JSONObject.toBean I receive the error: "beanClass is an interface. interface java.util.Set" Is there a way I can I tell json-lib the specific Set implementation I'd like it to use? Thanks! --- [This E-mail scanned for viruses by Declude EVA] ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ json-lib-user mailing list jso...@li... https://lists.sourceforge.net/lists/listinfo/json-lib-user ____________________________________________________________________________________ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping |