0
我进口JSON库爪哇 - 转换字符串以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);
我得到一个空对象{}
作为输出。我不知道为什么。