JsonneD.makeArray

Make a JsonnetJsonValue representing an array.

Assign elements with jsonnet_json_array_append.

struct JsonneD
makeArray
()

Examples

JsonneD jd = JsonneD();
JsonnetValue arr = jd.makeArray();

auto one = jd.makeNumber(1.0);
auto two = jd.makeNumber(2.0);
arr.arrayAppend(one);
arr.arrayAppend(two);

Meta