title: what is the equivalent in java of dictionary from.net?
body: <p>i'm writing a java client for .net server which uses REST/JSON interface. one of the APIs expects a class with a dictionary inside it. i tried to use a hashmap in the java client but seems that the serialization to json is different for java's hashmap and .net dictionary? i'm using gson by the way. is there another object i should use in java? is there a workaround besides coding the serialization myself?</p>