Skip to content

MTY_JSONBool

chrisd1100 edited this page Aug 25, 2022 · 1 revision

Get the bool value from an MTY_JSON boolean.

bool MTY_JSONBool(
    const MTY_JSON * json,
    bool *           value
);

Parameters

json (const MTY_JSON *)

An MTY_JSON boolean.

value (bool *)

The bool value from json.

Return value

bool

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

Platform support

Windows   macOS   Android   Linux   Web  

See also

Module: JSON

Clone this wiki locally