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":
>
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 =
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":