Re: how to sort json array in dataflow

2016-01-18 Thread Joe Percivall
e.age) / $.children.sort_desc(value.age) Roland. -Original Message- From: Joe Witt [mailto:joe.w...@gmail.com] Sent: Monday, January 11, 2016 10:52 AM To: users@nifi.apache.org Subject: Re: how to sort json array in dataflow Hello Roland I don't believe we have out of the box support for that bu

RE: how to sort json array in dataflow

2016-01-10 Thread 彭光裕
t,etc. for examples: $.children.sort_asc(value.age) / $.children.sort_desc(value.age) Roland. -Original Message- From: Joe Witt [mailto:joe.w...@gmail.com] Sent: Monday, January 11, 2016 10:52 AM To: users@nifi.apache.org Subject: Re: how to sort json array in dataflow Hello Rola

Re: how to sort json array in dataflow

2016-01-10 Thread Joe Witt
Hello Roland I don't believe we have out of the box support for that but it would make for likely a well scoped custom processor. You mention support for sort syntax. Can you share what that might look like? Thanks Joe On Sun, Jan 10, 2016 at 9:45 PM, 彭光裕 wrote: > Hi, > > I have a jso

how to sort json array in dataflow

2016-01-10 Thread 彭光裕
Hi, I have a json array flowfile and would like to sort the json array by some certain value (let’s say price). Is it possible sort json array within nifi dataflow? I have tried EvaluateJsonPath processor, but jsonpath doesn’t support sort syntax. I still can’t figure it out how to do th