gclass2json()
#
Converts a given hgclass
object into a JSON representation, including its attributes, commands, methods, and trace levels.
Prototype
json_t *gclass2json(
hgclass gclass_
);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
The |
Return Value
A json_t *
object containing the JSON representation of the hgclass
. The caller is responsible for managing the returned JSON object.
Notes
This function provides a structured JSON output of a hgclass
, including its attributes, commands, methods, and trace levels. It is useful for debugging and introspection.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples