<?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 lower case all JSON attributes in a flow file using Apache Nifi in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-to-lower-case-all-JSON-attributes-in-a-flow-file-using/m-p/334143#M231623</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/95117"&gt;@Wisdomstar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You should be able to use the &lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.15.2/org.apache.nifi.processors.standard.JoltTransformJSON/index.html" target="_self"&gt;JoltTransformJson&lt;/A&gt; NiFi processor to accomplish this.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MattWho_0-1642521884514.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/33195i1AE3CA5D624C1E57/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MattWho_0-1642521884514.png" alt="MattWho_0-1642521884514.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is a thread here where a jolt specification example exists fro doing what you are trying to do:&lt;BR /&gt;&lt;A href="https://stackoverflow.com/questions/54696540/jolt-transformation-lowercase-all-keys" target="_blank"&gt;https://stackoverflow.com/questions/54696540/jolt-transformation-lowercase-all-keys&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Add the Jolt specification in to the "Jolt Specification" property in the JoltTransformJson NiFi processor.&amp;nbsp; Set "Pretty Print" to true if you still want the nice multi-line formatted json to be produced.&lt;BR /&gt;&lt;BR /&gt;If you found this response assisted with your query, please take a moment to login and click on "&lt;STRONG&gt;Accept as Solution&lt;/STRONG&gt;" below this post.&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
    <pubDate>Tue, 18 Jan 2022 16:08:15 GMT</pubDate>
    <dc:creator>MattWho</dc:creator>
    <dc:date>2022-01-18T16:08:15Z</dc:date>
    <item>
      <title>How to lower case all JSON attributes in a flow file using Apache Nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-lower-case-all-JSON-attributes-in-a-flow-file-using/m-p/334115#M231613</link>
      <description>&lt;P&gt;I have a JSON text coming in a flowfile.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
      "_id":{
         "_data":"8261DB7CD7000000362B022C0100296E5A1004B9491C697A7B45E1BCDF455EB59ABC6F46645F6964006461DB7CD7564AB600124193730004"
      },
      "operationType":"insert",
      "clusterTime":{
         "$timestamp":{
            "t":1641774295,
            "i":54
         }
      }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to be able to replace all JSON attribute names with lowercased names.&lt;/P&gt;&lt;P&gt;Nifi is quite new to me. Can anyone please give a sample implementation?&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 11:50:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-lower-case-all-JSON-attributes-in-a-flow-file-using/m-p/334115#M231613</guid>
      <dc:creator>Wisdomstar</dc:creator>
      <dc:date>2022-01-18T11:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to lower case all JSON attributes in a flow file using Apache Nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-lower-case-all-JSON-attributes-in-a-flow-file-using/m-p/334123#M231615</link>
      <description>&lt;P&gt;You can do this by using ExecuteStreamCommand processor. In that processor you will give a python script path. While in script you can get this data, perform your desired operation and let the data out. Link to documentation is&lt;BR /&gt;&lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.5.0/org.apache.nifi.processors.standard.ExecuteStreamCommand/index.html" target="_blank"&gt;https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.5.0/org.apache.nifi.processors.standard.ExecuteStreamCommand/index.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 13:57:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-lower-case-all-JSON-attributes-in-a-flow-file-using/m-p/334123#M231615</guid>
      <dc:creator>m_adeel</dc:creator>
      <dc:date>2022-01-18T13:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to lower case all JSON attributes in a flow file using Apache Nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-lower-case-all-JSON-attributes-in-a-flow-file-using/m-p/334143#M231623</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/95117"&gt;@Wisdomstar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You should be able to use the &lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.15.2/org.apache.nifi.processors.standard.JoltTransformJSON/index.html" target="_self"&gt;JoltTransformJson&lt;/A&gt; NiFi processor to accomplish this.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MattWho_0-1642521884514.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/33195i1AE3CA5D624C1E57/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MattWho_0-1642521884514.png" alt="MattWho_0-1642521884514.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is a thread here where a jolt specification example exists fro doing what you are trying to do:&lt;BR /&gt;&lt;A href="https://stackoverflow.com/questions/54696540/jolt-transformation-lowercase-all-keys" target="_blank"&gt;https://stackoverflow.com/questions/54696540/jolt-transformation-lowercase-all-keys&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Add the Jolt specification in to the "Jolt Specification" property in the JoltTransformJson NiFi processor.&amp;nbsp; Set "Pretty Print" to true if you still want the nice multi-line formatted json to be produced.&lt;BR /&gt;&lt;BR /&gt;If you found this response assisted with your query, please take a moment to login and click on "&lt;STRONG&gt;Accept as Solution&lt;/STRONG&gt;" below this post.&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 16:08:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-lower-case-all-JSON-attributes-in-a-flow-file-using/m-p/334143#M231623</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2022-01-18T16:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to lower case all JSON attributes in a flow file using Apache Nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-lower-case-all-JSON-attributes-in-a-flow-file-using/m-p/334163#M231637</link>
      <description>&lt;P&gt;Many thanks for your guidance. I will take a look.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 02:20:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-lower-case-all-JSON-attributes-in-a-flow-file-using/m-p/334163#M231637</guid>
      <dc:creator>Wisdomstar</dc:creator>
      <dc:date>2022-01-19T02:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to lower case all JSON attributes in a flow file using Apache Nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-lower-case-all-JSON-attributes-in-a-flow-file-using/m-p/334165#M231639</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Many thanks for your guidance. I will take a look.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;PS. Your numerous solutions in the past had helped me a lot.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 02:22:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-lower-case-all-JSON-attributes-in-a-flow-file-using/m-p/334165#M231639</guid>
      <dc:creator>Wisdomstar</dc:creator>
      <dc:date>2022-01-19T02:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to lower case all JSON attributes in a flow file using Apache Nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-lower-case-all-JSON-attributes-in-a-flow-file-using/m-p/334198#M231649</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/95117"&gt;@Wisdomstar&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you, I appreciate that and glad I could help.&lt;BR /&gt;&lt;BR /&gt;Matt&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 13:45:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-lower-case-all-JSON-attributes-in-a-flow-file-using/m-p/334198#M231649</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2022-01-19T13:45:53Z</dc:date>
    </item>
  </channel>
</rss>

