Concat expressions with just a single element don't make sense, so
there's no point in supporting a shorter syntax for this.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
json_t *value;
size_t index;
- if (json_is_object(root))
- return json_parse_primary_expr(ctx, root);
- else if (!json_is_array(root)) {
+ if (!json_is_array(root)) {
json_error(ctx, "Unexpected concat object type %s.",
json_typename(root));
return NULL;