我想将此json转换为scala / spark
中的规范化表结构不确定如何继续获得此结构。
{
"codeDescData": {
"codeCategory": "alphabets",
"fieldName": "alpha fieldname",
"codes": [{
"code": "XYZ",
"codeDescription": "LAST 3 OF 26"
},
{
"code": "KLM",
"codeDescription": "Somewhere in the middle",
}],
"otherCodes:[{
"key":"ABC",
"KeyDescription":"descriptionofABC"
},
{
"key":"DEF",
"keyDescription":"DescriptionforDEF"
}
]"
}
}