Parsing "(a(sa{sv}))" GVariant from GDBus

Hello,

from a g_dbus_connection_call_sync() call I get the reply format “(a(sa{sv}))”, and try to parse / iterate over all elements.

All my attempts with g_variant_get() / g_variant_iter_next fail with errors() like “g_variant_iter_next: assertion ‘valid_format_string (format_string, TRUE, value)’ failed”.

Can somebody give an example how to iterate over these nested arrays?

Best regards,
Matthias

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.