【发布时间】:2016-02-28 21:28:35
【问题描述】:
我导入了 JSON 库
import org.json.JSONObject;
我有字符串sb
sb = {"contentPackages":{"name":"abc","url":"some-url","title":"Annotated Examples","description":"something"}};
JSONObject jsonObj = new JSONObject(sb);
System.out.println(jsonObj);
我得到一个空白对象{} 作为输出。我不知道为什么。
【问题讨论】:
-
什么是某人?
String?