kw_has_word()

kw_has_word()#

Check if a word exists in a space-separated string within a JSON object. Works with json_t *.

Prototype

PUBLIC BOOL kw_has_word(
    json_t      *kw,
    const char  *key,
    const char  *word
);
        

Parameters

Key

Type

Description

kw

json_t *

The JSON object to query.

key

const char *

The key containing the space-separated string.

word

const char *

The word to search for in the string.


Return Value

Returns TRUE if the word exists in the string, otherwise returns FALSE.

Prototype

// Not applicable in JS

Prototype

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