Skip to content

MTY_JSONArrayGetItem

chrisd1100 edited this page Aug 25, 2022 · 2 revisions

Get an item from an MTY_JSON array.

const MTY_JSON *MTY_JSONArrayGetItem(
    const MTY_JSON * json,
    uint32_t         index
);

Parameters

json (const MTY_JSON *)

An MTY_JSON array.

index (uint32_t)

Index to lookup.

Return value

const MTY_JSON *

If the index exists, the item at that index is returned. This reference is valid only as long as the json item is also valid.

If the index does not exist, NULL is returned.

Platform support

Windows   macOS   Android   Linux   Web  

See also

Module: JSON

Clone this wiki locally