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 |
---|---|---|
|
The JSON object to query. |
|
|
|
The key containing the space-separated string. |
|
|
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