How to convert jsonString to JSONObject in Java

前端 未结 19 3042
一生所求
一生所求 2020-11-22 00:39

I have String variable called jsonString:

{\"phonetype\":\"N95\",\"cat\":\"WP\"}

Now I want to convert it into JSON Object. I

19条回答
  •  面向向阳花
    2020-11-22 01:17

    There are various Java JSON serializers and deserializers linked from the JSON home page.

    As of this writing, there are these 22:

    • JSON-java.
    • JSONUtil.
    • jsonp.
    • Json-lib.
    • Stringtree.
    • SOJO.
    • json-taglib.
    • Flexjson.
    • Argo.
    • jsonij.
    • fastjson.
    • mjson.
    • jjson.
    • json-simple.
    • json-io.
    • google-gson.
    • FOSS Nova JSON.
    • Corn CONVERTER.
    • Apache johnzon.
    • Genson.
    • cookjson.
    • progbase.

    ...but of course the list can change.

提交回复
热议问题