Skip to content

MTY_JSONObjGetItem

chrisd1100 edited this page Aug 25, 2022 · 2 revisions

Get an item from an MTY_JSON object.

const MTY_JSON *MTY_JSONObjGetItem(
    const MTY_JSON * json,
    const char *     key
);

Parameters

json (const MTY_JSON *)

An MTY_JSON object.

key (const char *)

Key to lookup.

Return value

const MTY_JSON *

If the key exists, the associated item is returned. This reference is valid only as long as the json item is also valid.

If the key does not exist, NULL is returned.

Platform support

Windows   macOS   Android   Linux   Web  

See also

Module: JSON

Clone this wiki locally