JsonneD.makeObject

Make a JsonnetJsonValue representing an object with the given number of fields.

Every index of the array must have a unique value assigned with jsonnet_json_array_element.

struct JsonneD
makeObject
()

Examples

JsonneD jd = JsonneD();
JsonnetValue obj = jd.makeObject();
obj.objectAppend("foo", jd.makeString("Hello"));
obj.objectAppend("bar", jd.makeString("World"));
obj.objectAppend("args", jd.makeNumber(13.37));

Meta