Skip to content

JSON_GET_BOOL

Jurek Muszyński edited this page Sep 11, 2018 · 1 revision

bool JSON_GET_BOOL(JSON json, const char *name)

Description

Retrieves boolean value from JSON object.

Returns

Retrieved value.

Example

OUT("<p>Married: %s</p>", JSON_GET_BOOL(json, "married")?"yes":"no");
Clone this wiki locally