CBLite Get values in second level

Using CBLite Android, and storing docs (similar to Android Grocery Sync example) like this:

{
  "check" : true,
  "created_at" : "2014-02-25T10:16:46.026Z",
  "text" : "Soap",
  "prices":[  { "date" : "2014-02-25" , "price" : 12 }  ]
}

I get value in "text" field ​​as shown in the documentation:

...
Document document = row.getDocument();
String text = ((String)document.getCurrentRevision().getProperty("text"));
...

But, How should I do to get the value in, for example, "price" field?

Thanks.

1 Answer

« Back to question.

I have done.

I explain how i did, maybe someone is interested in

I created an ArrayList variable, and I got the objects with .getProperty("prices").