Re: converting date string to timestamp in json document

2017-01-10 Thread Nick Carenza
Well now that is pretty cool. Thanks James. On Mon, Jan 9, 2017 at 5:27 PM, James Wing wrote: > Nick, > > You could use ExecuteScript to manipulate the JSON. The sample ECMAScript > below assumes that you already have the transformed timestamp as an > attribute "timestamp": >

Re: converting date string to timestamp in json document

2017-01-09 Thread James Wing
Nick, You could use ExecuteScript to manipulate the JSON. The sample ECMAScript below assumes that you already have the transformed timestamp as an attribute "timestamp": var flowFile = session.get(); if (flowFile !== null) { var StreamCallback =

converting date string to timestamp in json document

2017-01-09 Thread Nick Carenza
Hey folks, I am having a hard time figuring out how to work with date values in json documents using the standard processors available in Nifi. example flowfile: { "time": "2017-01-01T01:14:55+00:00", "any": { "nested": "data" } } what i want: { "time": 1483233295, "any":