[
{
"operation": "modify-overwrite-beta",
// To add the value only if it does not exist, change the operation to "modify-default-beta"
"spec": {
"statistics": {
"*": {
"newValue": "test123"
}
}
}
}
]
To add a dynamic value, use the following Transformer Spec structure:
[
{
"operation": "modify-overwrite-beta",
// To add the value only if it does not exist, change the operation to "modify-default-beta"
"spec": {
"statistics": {
"*": {
"newValue": "@(3,happy)"
}
}
}
}
]
Note: in the above example, the number "3" indicates the number of levels that must be uploaded to access the JSON object. To better understand it, see the example below:
[
{
"operation": "modify-overwrite-beta",
"spec": {
"nivelX": {
"statistics": {
// the item "*" (all list elements, it is also considered a level)
"*": {
"newValue": "@(5,levelA.levelB.happy)"
}
}
}
}
}
]