Skip to content

MTY_JSONObjGetNextKey

chrisd1100 edited this page Aug 25, 2022 · 1 revision

Iterate through all keys in an MTY_JSON object.

bool MTY_JSONObjGetNextKey(
    const MTY_JSON * json,
    uint64_t *       iter,
    const char **    key
);

Parameters

json (const MTY_JSON *)

An MTY_JSON object.

iter (uint64_t *)

Iterator that keeps track of the position in the object. Set this to 0 before the fist call to this function.

key (const char **)

Reference to the next key in the object.

Return value

bool

Returns true if there are more keys available, otherwise false.

Platform support

Windows   macOS   Android   Linux   Web  

See also

Module: JSON

Clone this wiki locally