json - Converting a jsonString to HashMap - Stack Overflow

I have a jsonString which is a list of key value pairs.[{"id": "123", "url&qu

I have a jsonString which is a list of key value pairs.

[
 {"id": "123", "url": "ghi"} : 2,
 {"id": "456", "url": "def"} : 3
]

How to convert to HashMap. Maps:

Key - {"id": "123", "url": "ghi"} value - 2 Key - {"id": "456", "url": "def"} value - 3

The key issue here is that the Key is a composite type and not a simple datatype

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744249842a4565115.html

相关推荐

  • json - Converting a jsonString to HashMap - Stack Overflow

    I have a jsonString which is a list of key value pairs.[{"id": "123", "url&qu

    8天前
    10

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信