I got a scenario.
Required input and output are JSON.
// Input
{
\"OldObject\": {
\"Time\": 1351
Another option is use Logz.io Sawmill library. You define a pipeline and execute it. For you example:
{
steps: [
{
rename {
config {
from: "OldObject"
to: "NewObject"
}
}
}
{
removeField {
config {
path: "NewObject.price"
}
}
}
{
rename {
config {
from: "NewObject.Name"
to: "NewObject.Title"
}
}
}
]
}