Re: [json-lib-user] hopefully simple question about JSONObject
Brought to you by:
aalmiray
From: Andres A. <aal...@ya...> - 2008-01-12 00:43:01
|
Hi David, Do you have a full stack trace of the error? it might help to shed some light into your problem. Cheers, Andres ------------------------------------------- http://jroller.com/aalmiray http://www.linkedin.com/in/aalmiray -- What goes up, must come down. Ask any system administrator. There are 10 types of people in the world: Those who understand binary, and those who don't. To understand recursion, we must first understand recursion. ----- Original Message ---- From: David Robertson <dwr...@lb...> To: jso...@li... Sent: Friday, January 11, 2008 4:40:36 PM Subject: [json-lib-user] hopefully simple question about JSONObject I am a newbie to Json-lib and am trying to create a JSONObject within a Java 1.5 servlet. I am using json-lib-2.2-jdk15.jar I have the following code: Map outputMap = new HashMap(); outputMap.put("var1", "value1"); JSONObject jsonObject = JSONObject.fromObject(outputMap) The servlet dies on the last line of code. I have tried the JSONSerializer version from the snippets as well with the same result. The answer is probably staring me in the face, but I don't see it. ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ json-lib-user mailing list jso...@li... https://lists.sourceforge.net/lists/listinfo/json-lib-user ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ |