0
我剛剛熟悉StackMob服務器端自定義代碼sdk,我試圖獲取關係字段並以字符串數組的形式迭代它。我怎麼做 ?是否可以遍歷它而不解析爲數組?如何將SMValue解析爲字符串數組
DataService ds = serviceProvider.getDataService();
List<SMCondition> query = new ArrayList<SMCondition>();
query.add(new SMEquals("product_id", new SMString(jsonObj.getString("product_id"))));
List<SMObject> results = ds.readObjects("product", query);
SMObject product= results.get(0);
//product.getValue().get("categories"); how do i get this to be a String array?
謝謝你的回答 – blackmwana 2013-04-07 13:13:39