Method
JsonObjectget_int_member_with_default
since: 1.6
Declaration [src]
gint64
json_object_get_int_member_with_default (
JsonObject* object,
const char* member_name,
gint64 default_value
)
Description [src]
Convenience function that retrieves the integer value
stored in member_name
of object
.
If member_name
does not exist, does not contain a scalar value,
or contains null
, then default_value
is returned instead. If
member_name
contains a non-integer, non-null
scalar value, then whatever
json_node_get_int()
would return is returned.
Available since: 1.6