parser json UPDATE clearer invalid format error
Refs #1932
diff --git a/src/parser_json.c b/src/parser_json.c
index cd3d9a7..f1576d2 100644
--- a/src/parser_json.c
+++ b/src/parser_json.c
@@ -452,7 +452,8 @@
/* only [null] */
LY_CHECK_RET(lyjson_ctx_next(lydctx->jsonctx, status_p));
if (*status_p != LYJSON_NULL) {
- LOGVAL(lydctx->jsonctx->ctx, LYVE_SYNTAX_JSON, "Expected JSON name/[null], but input data contains name/%s.",
+ LOGVAL(lydctx->jsonctx->ctx, LYVE_SYNTAX_JSON,
+ "Expected JSON name/value or special name/[null], but input data contains name/[%s].",
lyjson_token2str(*status_p));
return LY_EINVAL;
}