1

The object that is stored in the hashmap, is a connector object that connects 2 other classes into one. One of this class has arraylist of another class.

How do I make this hashmap into a JSON object. I tried with Jackson but still failed to accomplish this. Anyone has any idea of getting this done?

  • 1
    The correct way to ask this question would be: I'm trying to marshal and unmarshal a Map to JSON using this code : . Here are the classes of the objects stored in the map: . I get this exception: . What is the reason? How to fix this code? – JB Nizet Apr 17 '17 at 08:38
  • 1
    Also read this guide: [minimum complete verifiable example](http://stackoverflow.com/help/mcve) – zloster Apr 17 '17 at 08:39
  • 1
    Possible duplicate of [How to convert hashmap to JSON object in Java](http://stackoverflow.com/questions/12155800/how-to-convert-hashmap-to-json-object-in-java) – Nishant Apr 17 '17 at 08:45
  • @Nishant This is not a duplicate of the question you posted. – Andrew Joeshanth Apr 17 '17 at 10:43

0 Answers0