Skip to content

MTY_JSONString

chrisd1100 edited this page Aug 25, 2022 · 1 revision

Get the string value from an MTY_JSON string.

bool MTY_JSONString(
    const MTY_JSON * json,
    char *           value,
    size_t           size
);

Parameters

json (const MTY_JSON *)

An MTY_JSON string.

value (char *)

Filled with the string value from json.

size (size_t)

Size in bytes of value.

Return value

bool

Returns true on success, false if the type of json is not MTY_JSON_STRING or the string value from json could not fit in value.

Platform support

Windows   macOS   Android   Linux   Web  

See also

Module: JSON

Clone this wiki locally