Try this spec:
[
{
"operation": "shift",
"spec": {
"somedate": "somedate.\\$date"
}
}
]
I haven't tried this in NiFi (only in http://jolt-demo.appspot.com),
if there's an issue with Expression Language you might need to escape
more of the $ somehow.
Regards,
Matt
On Fri, May 24, 2019 at 9:11 PM Puspak <[email protected]> wrote:
>
> hi , i have a requirement where i have to convert json 1 to json 2 . Could
> you please suggest how can i achieve it nifi .
>
> json1 -
> {
> "somedate" : "1557840900",
> }
> json2-
> {
> "somedate" : {
> "$date" : 1557840900
> }
> }
>
> which kind of transformation i can use for the same.
>
>
>
> --
> Sent from: http://apache-nifi-developer-list.39713.n7.nabble.com/