I have Map in java like this :
Map
{card_switch=Master, issuing_bank=ICCI, card_Type=DebitCard}
I\'m using the s
Try this. But do you need the gson library:
Map map = new HashMap<>(); String value = new Gson().toJson(map);