gobj_match_childs()

gobj_match_childs()#

Returns a list of child objects that match the specified filter criteria.

Prototype

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

Parameters

Key

Type

Description

gobj

hgobj

The parent object whose children will be searched.

jn_filter

json_t *

A JSON object containing filter criteria. The function takes ownership of this parameter.


Return Value

A JSON array containing matching child objects. The caller is responsible for freeing the returned JSON object.

Notes

Use gobj_free_iter() to free the returned JSON array when it is no longer needed.

Prototype

// Not applicable in JS

Prototype

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