You might also want to look at TransformJOLTProcessor [1] now available in 
0.7.0 and 1.0 that allows various JOLT [2][3] operations on JSON. This was just 
added by Yolanda Davis and could be very helpful for you.

[1] https://issues.apache.org/jira/browse/NIFI-361 
<https://issues.apache.org/jira/browse/NIFI-361>
[2] https://github.com/bazaarvoice/jolt <https://github.com/bazaarvoice/jolt>
[3] https://bazaarvoice.github.io/jolt/ <https://bazaarvoice.github.io/jolt/>

Andy LoPresto
[email protected]
[email protected]
PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4  BACE 3C6E F65B 2F7D EF69

> On May 17, 2016, at 8:54 AM, idioma <[email protected]> wrote:
> 
> Hi, I have had a look at the available processors and it seems I can do the
> following:
> 
> GetFile (with my json already created) ->EvaluateJsonPath -> UpdateAttribute
> ->PutFile
> 
> So, lets get started with simply adding the missing '"", I am under the
> impression that I can use something like this:
> 
> ${myAttribute.1:append('"')}
> 
> where attribute myAttribute.1 is the value, for example, for field7. My
> question is how do I get hold that attribute from the incoming flowfile? Can
> you help?
> 
> Thanks,
> 
> 
> 
> --
> View this message in context: 
> http://apache-nifi-developer-list.39713.n7.nabble.com/Formatting-issues-with-Json-what-is-the-best-approach-in-NiFi-tp10412p10417.html
> Sent from the Apache NiFi Developer List mailing list archive at Nabble.com.

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

Reply via email to