gclass2json()

gclass2json()#

The gclass2json function returns a JSON object containing a structured description of a given gclass, including its attributes, commands, methods, and trace levels.

Prototype

json_t *gclass2json(
    hgclass gclass
);

Parameters

Key

Type

Description

gclass

hgclass

A handle to the gclass whose details are to be retrieved.


Return Value

A JSON object containing the structured description of the gclass. If gclass is NULL, an empty JSON object is returned.

Notes

[‘The returned JSON object includes fields such as id, gcflag, priv_size, attrs, commands, gclass_methods, internal_methods, FSM, Authzs global, Authzs gclass, info_gclass_trace, gclass_trace_level, gclass_trace_no_level, and instances.’, ‘The caller is responsible for managing the memory of the returned JSON object.’]

Prototype

// Not applicable in JS

Prototype

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