Get the boolean value from the current or the specified node
#include <sys/json.h>
json_decoder_error_t json_decoder_get_bool(json_decoder_t *decoder,
const char *name,
bool *value,
bool optional);
This function gets the boolean value from the current node or from the node with the given name, if the decoder is currently positioned in an object. If successful, the decoder will advance its position to the next node in the object or array.