Retrieve tree elements using cdb_get_object() API

Yes, it is possible.

You can refer to the following two postings for more information on the cdb_get_object( ) API:

Most optimal way to read large quantity of statistics from confd with C++ API

get_object for containers within a list