gobj_read_json_attr()
#
gobj_read_json_attr()
retrieves the JSON attribute of a given GObj, including inherited attributes from bottom GObjs.
Prototype
json_t *gobj_read_json_attr(
hgobj gobj,
const char *name
);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
The GObj from which the attribute is read. |
|
|
The name of the attribute to retrieve. |
Return Value
Returns a pointer to the JSON attribute value. The returned JSON object is not owned by the caller and must not be modified or freed.
Notes
If the attribute is not found in gobj
, the function searches in its bottom GObjs. If the attribute does not exist, a warning is logged.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples