Skip to content

MTY_JSONArraySetItem

chrisd1100 edited this page Aug 25, 2022 · 2 revisions

Set an item in an MTY_JSON array.

bool MTY_JSONArraySetItem(
    MTY_JSON * json,
    uint32_t   index,
    MTY_JSON * value
);

Parameters

json (MTY_JSON *)

An MTY_JSON array.

index (uint32_t)

The array index where value will be stored.

value (MTY_JSON *)

Item to set at index.

Return value

bool

Returns true if value was set successfully, otherwise false.

Platform support

Windows   macOS   Android   Linux   Web  

See also

Module: JSON

Clone this wiki locally