英文:
Remove Group array element field from Jolt
问题
I have this group array element in my jolt spec called "data", but I want it removed from my spec.
[
{
"data": [
{
"integrationEntities": {
"integrationEntity": [
{
"integrationEntityHeader": {
"integrationTrackingNumber": "gut.govan@my.com_666886_20230525163038"
}
}
]
}
}
]
}
]
英文:
I have this group array element in my jolt spec called "data",
but I want it removed from my spec.
[
{
"data": [
{
"integrationEntities": {
"integrationEntity": [
{
"integrationEntityHeader": {
"integrationTrackingNumber": "gut.govan@my.com_666886_20230525163038"
}
}
]
}
}
]
}
]
答案1
得分: 2
然后,您应该在保留 data
数组的层级上调整匹配 "data":""
的删除转换规范,例如:
[
{
"operation": "remove",
"spec": {
"*": {
"data": ""
}
}
}
]
英文:
Then you should adjust the match "data":""
within a remove transformation spec at the level where data
array stays such as
[
{
"operation": "remove",
"spec": {
"*": {
"data": ""
}
}
}
]
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论