load_json_from_file()

load_json_from_file()#

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

Prototype

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

Parameters

Key

Type

Description

path

const char *

The path to the JSON file.

verbose

int

The verbosity level for logging messages.


Return Value

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

Prototype

// Not applicable in JS

Prototype

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