load_persistent_json()

load_persistent_json()#

Load a persistent JSON object from a file. Works with json_t *.

Prototype

PUBLIC json_t *load_persistent_json(
    const char  *path,
    int          verbose
);
        

Parameters

Key

Type

Description

path

const char *

The path to the persistent JSON file.

verbose

int

The verbosity level for logging messages.


Return Value

Returns a json_t * object containing the persistent data, or NULL on failure.

Prototype

// Not applicable in JS

Prototype

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