📌  相关文章
📜  字符串到 JSONobject + android - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:55.083000             🧑  作者: Mango

代码示例1
String json = {"phonetype":"N95","cat":"WP"};

try {

    JSONObject obj = new JSONObject(json);

    Log.d("My App", obj.toString());

} catch (Throwable t) {
    Log.e("My App", "Could not parse malformed JSON: \"" + json + "\"");
}