Skip to content

MTY_JSONInt16

chrisd1100 edited this page Aug 25, 2022 · 1 revision

Get the int16_t value from an MTY_JSON number.

bool MTY_JSONInt16(
    const MTY_JSON * json,
    int16_t *        value
);

Parameters

json (const MTY_JSON *)

An MTY_JSON number.

value (int16_t *)

The int16_t value from json.

Return value

bool

Returns true on success, false if the type of json is not MTY_JSON_NUMBER.

Platform support

Windows   macOS   Android   Linux   Web  

See also

Module: JSON

Clone this wiki locally