The `is_error()` is just a macro that checks
that object is NULL (which is considered an error
in libjson-c terminology).
Newer libjson-c versions have deprecated this.
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
tok = json_tokener_new();
obj = json_tokener_parse_ex(tok, start, len);
tok = json_tokener_new();
obj = json_tokener_parse_ex(tok, start, len);
netifd_init_script_handler(name, obj, cb);
json_object_put(obj);
json_tokener_free(tok);
netifd_init_script_handler(name, obj, cb);
json_object_put(obj);
json_tokener_free(tok);