--- libelwix/inc/elwix/ajson.h 2018/04/18 14:55:45 1.4.6.2 +++ libelwix/inc/elwix/ajson.h 2018/04/19 16:12:45 1.5.2.1 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: ajson.h,v 1.4.6.2 2018/04/18 14:55:45 misho Exp $ +* $Id: ajson.h,v 1.5.2.1 2018/04/19 16:12:45 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -153,6 +153,14 @@ long json_token2num(const char *jstr, jtok_t * __restr * @return number */ double json_token2dbl(const char *jstr, jtok_t * __restrict tok); +/* + * json_token2bool() - Return token to bool int + * + * @jstr = JSON string + * @tok = Token for convert + * @return 0 for FALSE and !=0 for TRUE + */ +int json_token2bool(const char *jstr, jtok_t * __restrict tok); /* * json_token2array() - Convert token to string array *