node_collapsed_view()

node_collapsed_view()#

Generates a collapsed view of a node in the tree database, applying filtering and transformation options.

Prototype

json_t *node_collapsed_view(
    json_t *tranger,    // NOT owned
    json_t *node,       // NOT owned
    json_t *jn_options  // owned, fkey, hook options
);

Parameters

Key

Type

Description

tranger

json_t *

Pointer to the tranger instance managing the tree database. Not owned by the caller.

node

json_t *

Pointer to the node to be collapsed. Not owned by the caller.

jn_options

json_t *

JSON object containing options for collapsing the node, including fkey and hook options. Owned by the caller.


Return Value

A JSON object representing the collapsed view of the node. The caller must decrement the reference when done.

Notes

The function applies filtering and transformation rules based on jn_options to generate a simplified representation of the node.

Prototype

// Not applicable in JS

Prototype

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