gobj_view_tree()

gobj_view_tree()#

Generates a hierarchical JSON representation of the given hgobj and its child objects, including selected attributes.

Prototype

json_t *gobj_view_tree(
    hgobj gobj,
    json_t *jn_filter // owned
);

Parameters

Key

Type

Description

gobj

hgobj

The root hgobj whose tree structure will be represented.

jn_filter

json_t *

A JSON object specifying which attributes to include in the output. Owned by the function.


Return Value

A JSON object representing the hierarchical structure of gobj and its children, including the requested attributes.

Notes

The returned JSON object must be freed by the caller. The jn_filter parameter allows selective inclusion of attributes such as fullname, state, attrs, etc.

Prototype

// Not applicable in JS

Prototype

# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples