kwid_match_nid()

kwid_match_nid()#

Check if a JSON object matches a specific nid (Node ID). Works with json_t *.

Prototype

PUBLIC BOOL kwid_match_nid(
    json_t      *record,
    const char  *nid
);
        

Parameters

Key

Type

Description

record

json_t *

The JSON object to check.

nid

const char *

The nid to match against the record.


Return Value

Returns TRUE if the nid matches the nid in the JSON object, otherwise returns FALSE.

Prototype

// Not applicable in JS

Prototype

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