how to reference object properties and the object itself in Jsonnet
问题 I am trying to build an object like following in Jsonnet, but I couldn't work out a way to present it in Jsonnet. "properties" :{ "a" : "value for a", "b" : "value for b", ... "nested" : { "a" : "value for a", "b" : "value for b", ... } } Basically, I am looking for a way to refer to the following part in the parent object: "a" : "value for a", "b" : "value for b", ... 回答1: iiuc your question, below code should do it -- essentially use a variable, dubbed p in this case to hook properties 's