Android& Quickblox:如何获取自定义对象 ID?

Android&Quickblox: Ho to get QBCustomObject id?

从数据库中检索后,我无法从 QBCustomObject 中获取 id 字段。 我试过了:

customObject.getId()
customObject.get("id")
customObject.get("_id")

但它们都return 无效。 get请求的响应是:

 '{"class_name":"Commento","skip":0,"limit":0,"items":[{"_id":"58764867a28f9a83b00000d6","_parent_id":null,"created_at":1484146791,"post_id":"news1542333154","testo":"un commento","updated_at":1484146791,"user_id":22399324},{"_id":"58764865a0eb47eecc00003a","_parent_id":null,"created_at":1484146789,"post_id":"news1542333154","testo":"un commento","updated_at":1484146789,"user_id":22399324}]}'

我要获取的值是“58764867a28f9a83b00000d6”。

正确的方法是什么?

我发现正确的方法是调用 customObject.getCustomId()