我有低于震动的输入,
{
"citycode": "34343",
"branch": "cityname",
"changeDatetime": 1677063272522,
"Marks": "L",
"designations": [
{
"designation": "security ",
"Language": "de"
},
{
"designation": "officer",
"Language": "fr"
},
{
"designation": "superior",
"Language": "en"
}
]
}
字符串
所需输出为:
{
"citycode" : "34343",
"branch" : "cityname",
"Marks" : "L",
"LANGUAGE-ID" : "de",
"Occupation" : "security",
"LANGUAGE-ID" : "fr",
"Occupation" : "officer",
"LANGUAGE-ID" : "en",
"Occupation" : "superior"
}
型
电流冲击输出如下:
{
"citycode" : "34343",
"branch" : "cityname",
"Marks" : "L",
"LANGUAGE-ID" : [ "de", "fr", "en" ],
"Occupation" : [ "security ", "officer", "superior" ]
}
型
需要分别拆分数组元素。你能帮帮忙吗
1条答案
按热度按时间cgfeq70w1#
当前所需的JSON输出无效,但您可能需要以下输出
字符串
它为每个
LANGUAGE-ID
和Occupation
键添加增量(0,1,2)索引后缀