create_json_record()

create_json_record()#

Create a JSON object record with predefined fields. Works with json_t *.

Prototype

PUBLIC json_t *create_json_record(
    const char  *schema,
    const char  *data
);
        

Parameters

Key

Type

Description

schema

const char *

The schema defining the structure of the record.

data

const char *

The data to populate the record with.


Return Value

Returns a json_t * object representing the JSON record, or NULL on failure.

Prototype

// Not applicable in JS

Prototype

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