We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
[]
jv a = jv_array();
[<literals>]
jv a = JV_ARRAY(jv_string("this"),jv_number(3) /*, etc., up to 9 */);
a |= . + [stuff]
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);