users@jersey.java.net

HashMap to jason serialization

From: Anil Datt <anildatt_at_hotmail.com>
Date: Wed, 28 Jul 2010 13:17:26 +0000

I am using the most recent version of JAX-RS bundle. Whe I convert from my java object which has the HahMap

 
class class Msg {
       String command;
       HashMap<String,String> args;
      } it gets transformed to {"args":{"entry":[{"key":"button","value":"hello"},{"key":"url","value":"http://test"}]},"command":"display
page"} How can i get rin of the "entry" keyword and the square brackets that represent the array. Is there any other data structure that i can use in place of hashmap? Thanks,Ad
_________________________________________________________________
Hotmail is redefining busy with tools for the New Busy. Get more from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2