Convert JSONObject to Map

后端 未结 6 1908
抹茶落季
抹茶落季 2020-12-08 18:20

I have a JSONObject with some attributes that I want to convert into a Map

Is there something that I can use from the

6条回答
  •  北荒
    北荒 (楼主)
    2020-12-08 18:48

    use Jackson(http://jackson.codehaus.org/) from http://json.org/

    HashMap result =
            new ObjectMapper().readValue(, HashMap.class);
    

提交回复
热议问题