{
"name": "XYZ",
"lastName": "PQR",
"address": "abc, mnop, 534291"
}
{
"employee": {
"name": "XYZ",
"lastName": "PQR",
"address": "abc, mnop, 534291"
},
"address": {
"name": "XYZ",
"lastName": "PQR",
"address": "abc, mnop, 534291"
}
}
您可以在 shift
转换中一起使用
*
和
@
通配符,如下所示:
[
{
"operation": "shift",
"spec": {
"*": "address.&", // this needs an ampersand to replicate the whole content
"@": "employee" // while this one doesn't
}
}
]
网站上的 演示 http://jolt-demo.appspot.com/ 是: