nifi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Burgess <mattyb...@apache.org>
Subject Re: Json conversion query : Help
Date Sat, 25 May 2019 02:09:59 GMT
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 <puspakdas.mca@gmail.com> 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/

Mime
View raw message