json_record_to_schema()
#
Converts a JSON record descriptor into a topic schema, mapping field definitions to a structured format.
Prototype
json_t *json_record_to_schema(
const json_desc_t *json_desc
);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
Pointer to an array of JSON field descriptors, defining the structure of the record. |
Return Value
A new JSON array containing schema definitions for each field in the input descriptor.
Notes
Each field in the schema includes an ‘id’, ‘header’, ‘type’, and ‘fillspace’ attribute. The caller is responsible for managing the returned JSON object.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples