I have json data like
{
"labels1":
{"A":1,"B":2, "C":3},
"labels2":
{"A":1,"B":2, "C":3},
}
and I want 3 output columns that say tagname, keyname,value. The final output will be like
tagname,key,value
labels1,A,1
labels1,B,2
labels1,C,3
labels2,A,1
labels2,B,2
labels2,C,3
How can I achieve this usecase, also the keys A,B,C are just sample and there can be multiple optional fields. Thanks in advance and let me know if any more information is required.