Code Review
/
src
/
app-framework-binder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Improve parsing of json string
[src/app-framework-binder.git]
/
src
/
afb-api-so-v2.c
diff --git
a/src/afb-api-so-v2.c
b/src/afb-api-so-v2.c
index
6c98ce4
..
3910788
100644
(file)
--- a/
src/afb-api-so-v2.c
+++ b/
src/afb-api-so-v2.c
@@
-75,11
+75,11
@@
struct json_object *afb_api_so_v2_make_description_openAPIv3(const struct afb_bi
char buffer[256];
const struct afb_verb_v2 *verb;
struct json_object *r, *f, *a, *i, *p, *g;
char buffer[256];
const struct afb_verb_v2 *verb;
struct json_object *r, *f, *a, *i, *p, *g;
-
+ enum json_tokener_error jerr;
if (binding->specification) {
if (binding->specification) {
- r = json_tokener_parse
(binding->specification
);
- if (
r
)
+ r = json_tokener_parse
_verbose(binding->specification, &jerr
);
+ if (
jerr == json_tokener_success
)
return r;
}
return r;
}