Collect the nested fields

Hi,

How can I collect the nested fields names only:

"variable" : {
	"XX" : {
		"value" : "1"
	},
	"YY" : {
		"value" : "2"
	}

How can i extract the nested filed names "XX" & "YY" using painless script

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.