C: `jv` API patterns resembling `jq` patterns - jqlang/jq GitHub Wiki
C is not jq. A lot of jq patterns can't be replicated in C with the jv
API, but some resemblance for some patterns can be had.
jv a = jv_array();
jv a = JV_ARRAY(jv_string("this"),jv_number(3) /*, etc., up to 9 */);
jv a = ...; // some array
jv b = ...; // stuff
a = jv_array_concat(a, b); // note: frees `b`
There's no nice jq equivalent of this, oddly:
a = jv_array_append(a, v);