Add json_boolean_value as alias for json_is_true

Fixes #146.
This commit is contained in:
Petri Lehtinen
2013-12-04 09:14:17 +02:00
parent 34d8b92dce
commit 05f7d30e5a
3 changed files with 8 additions and 0 deletions

View File

@@ -150,6 +150,11 @@ functions:
Returns true for types ``JSON_TRUE`` and ``JSON_FALSE``, and false
for values of other types and for *NULL*.
.. function:: json_boolean_value(const json_t *json)
Alias of :func:`json_is_true()`, i.e. returns 1 for ``JSON_TRUE``
and 0 otherwise.
.. _apiref-reference-count: