How can i convert such a string to json in java?
String mycode = "{ "name": "Test", "Status": { "code": 200, "request": "get" } }";
thanks
Using org.json library:
JSONObject jsonObj = new JSONObject(mycode);
1.4m articles
1.4m replys
5 comments
57.0k users