<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: How to load attributes from json in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-to-load-attributes-from-json/m-p/215068#M176980</link>
    <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/44190/tthomas.html" nodeid="44190"&gt;@tthomas&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can use EvaluateJsonPath to extract a JSON field and add it as a flow file attribute : &lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.6.0/org.apache.nifi.processors.standard.EvaluateJsonPath/index.html" target="_blank"&gt;https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.6.0/org.apache.nifi.processors.standard.EvaluateJsonPath/index.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If your JSON is the following and you want to add a flow file attribute called timestamp&lt;/P&gt;&lt;PRE&gt;{
“created_at” : “Thu Sep 28 08:08:09 CEST 2017”,
“id_store” : 4,
“event_type” : “store capacity”,
“id_transaction” : “1009331737896598289”,
“id_product” : 889,
“value_product” : 45
}&lt;/PRE&gt;&lt;P&gt;you can add an EvaluateJsonPath and add an attribute timestamp with the value $.created_at&lt;/P&gt;</description>
    <pubDate>Tue, 05 Jun 2018 00:56:49 GMT</pubDate>
    <dc:creator>ahadjidj</dc:creator>
    <dc:date>2018-06-05T00:56:49Z</dc:date>
  </channel>
</rss>

