我刚刚熟悉 StackMob 服务器端自定义代码 sdk,我正在尝试获取一个关系字段并以字符串数组的形式遍历它。我怎么做 ?是否可以在不将其解析为数组的情况下对其进行迭代?
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?