type; if (!dst || !obj || !key) return EINVAL; if (!json_object_object_get_ex(obj, key, &value)) return ENOENT; type = json_object_get_type(value); if (type != json_type_double && type != json_type_int) return EPROTO; *dst = json_object_get_double(value);...