Converting Map into json

前端 未结 4 1890
长情又很酷
长情又很酷 2021-02-15 16:40

I have Map in java like this :

{card_switch=Master, issuing_bank=ICCI, card_Type=DebitCard}

I\'m using the s

4条回答
  •  佛祖请我去吃肉
    2021-02-15 17:23

    It should be possible, but i think you hold it the wrong way around: parse will PARSE json-text content, and provide you with an Java-equivalent ("decoding")

    look at the sample on the homepage: http://code.google.com/p/json-simple/wiki/EncodingExamples#Example_1-3_-_Encode_a_JSON_object_-_Using_Map

提交回复
热议问题