The JSON transformation process in this example demonstrates how the textual value inside the key 'LONG_VALUE_IN_STRING' is converted to a long integer value.
[
{
"operation": "shift",
"spec": {
"LONG_VALUE_IN_STRING": {
"": null,
" ": null,
"*": {
"$": "LONG_VALUE_IN_STRING"
}
}
}
},
{
"operation": "default",
"spec": {
"LONG_VALUE_IN_STRING": 0
}
},
{
"operation": "modify-overwrite-beta",
"spec": {
"LONG_VALUE_IN_STRING": "=toLong"
}
},
{
"operation": "shift",
"spec": {
"LONG_VALUE_IN_STRING": "value"
}
}
]
CODE