<?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: NIFI Extract text from JSON (a bit complex JSON returned from an API) in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/NIFI-Extract-text-from-JSON-a-bit-complex-JSON-returned-from/m-p/374052#M241865</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/106034"&gt;@Paulito&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;The easiest way I can think of is to do this in two Processors:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1- &lt;STRONG&gt;JoltTransformJson:&lt;/STRONG&gt; Allows you to transform your json by simplifying it into an array or records where each record has list of fieldname:fieldvalue. To achieve this you need to provide the following jolt spec in the "&lt;STRONG&gt;Jolt Specification&lt;/STRONG&gt;" property of the processor:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[
  {
    "operation": "shift",
    "spec": {
      "Result": {
        "ResultData": {
          "DATARECORD": {
            "*": {
              "DATAFIELD": {
                "*": {
                  "FIELDVALUE": "[&amp;amp;3].@(1,FIELDNAME)"
                }
              }
            }
          }
        }
      }
    }
  }
]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically the spec above will give you the following json based on the provided input:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[ {
  "name" : "JSMITH",
  "namedesc" : "John Smith",
  "hireddate" : "01-JAN-2010"
}, {
  "name" : "RSTONE",
  "namedesc" : "Robert Stone",
  "hireddate" : "01-JAN-2011"
} ]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2- QueryRecord&lt;/STRONG&gt; Processor: to allow you to select the fields you are interested in for the given API as follows. The query is just like sql query and you can either specify wildcard (*) for all fields or just list particular fields as follows:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SAMSAL_0-1689721462315.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/38018i9EE3D2E11E5B80A9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SAMSAL_0-1689721462315.png" alt="SAMSAL_0-1689721462315.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The out put of the QueryRecord will look like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[
	{
		"name": "JSMITH",
		"namedesc": "John Smith"
	},
	{
		"name": "RSTONE",
		"namedesc": "Robert Stone"
	}
]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Of course you can make this dynamic for each API by providing both the Jolt spec and the Query as flowfile attributes since both allow expression language (EL) in the value field.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can also achieve the same result by using just the Jolt Transformation processor but the spec would be more complex and I dont want to overwhelm you in case you are new to it, but if you are interested in that let me know and I will be happy to provide you the spec.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this helps please accept solution.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 18 Jul 2023 23:13:41 GMT</pubDate>
    <dc:creator>SAMSAL</dc:creator>
    <dc:date>2023-07-18T23:13:41Z</dc:date>
    <item>
      <title>NIFI Extract text from JSON (a bit complex JSON returned from an API)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NIFI-Extract-text-from-JSON-a-bit-complex-JSON-returned-from/m-p/373980#M241840</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I'm using the NIFI ExtractText Processor and I'm trying to come up with the regular expression to extract values from a JSON String that is in the flowfile-content coming from a response of an API (of course I cannot change how the API responds).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;JSON Data returned from the REST API is:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;{&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;&amp;nbsp; "Result" : {&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;&amp;nbsp; &amp;nbsp; "SessionID" : null,&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;&amp;nbsp; &amp;nbsp; "ResultData" : {&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "DATAENTITYNAME" : "List",&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "CURRENTCURSORPOSITION" : 2,&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "DATARECORD" : [ {&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "DATAFIELD" : [ {&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "FIELDNAME" : "name",&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "FIELDLABEL" : "Name",&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "DATATYPE" : "VARCHAR",&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "FIELDVALUE" : "JSMITH",&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "ISKEYFIELD" : true&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }, {&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "FIELDNAME" : "namedesc",&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "FIELDLABEL" : "Name Desc.",&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "DATATYPE" : "MIXVARCHAR",&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "FIELDVALUE" : "John Smith",&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "ISKEYFIELD" : false&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }, {&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "FIELDNAME" : "hireddate",&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "FIELDLABEL" : "Hired Date",&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "DATATYPE" : "DATE",&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "FIELDVALUE" : "01-JAN-2010",&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "ISKEYFIELD" : false&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }]&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;}, {&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "DATAFIELD" : [ {&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "FIELDNAME" : "name",&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "FIELDLABEL" : "Name",&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "DATATYPE" : "VARCHAR",&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "FIELDVALUE" : "RSTONE",&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "ISKEYFIELD" : true&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }, {&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "FIELDNAME" : "namedesc",&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "FIELDLABEL" : "Name Desc.",&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "DATATYPE" : "MIXVARCHAR",&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "FIELDVALUE" : "Robert Stone",&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "ISKEYFIELD" : false&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }, {&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "FIELDNAME" : "hireddate",&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "FIELDLABEL" : "Hired Date",&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "DATATYPE" : "DATE",&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "FIELDVALUE" : "01-JAN-2011",&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "ISKEYFIELD" : false&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }]&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; },&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;},&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;&amp;nbsp; &amp;nbsp; "InfoAlert" : null,&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;&amp;nbsp; &amp;nbsp; "WarningAlert" : null&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;&amp;nbsp; },&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;&amp;nbsp; "ConfirmationAlert" : null,&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;&amp;nbsp; "ErrorAlert" : [ ]&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;}&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;How do I get all "name" and "namedesc"?&amp;nbsp; (in the example: JSMITH -&amp;gt;&amp;nbsp;John Smith and&amp;nbsp;RSTONE -&amp;gt;&amp;nbsp;Robert Stone)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks!!!!!&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Mon, 17 Jul 2023 17:02:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NIFI-Extract-text-from-JSON-a-bit-complex-JSON-returned-from/m-p/373980#M241840</guid>
      <dc:creator>Paulito</dc:creator>
      <dc:date>2023-07-17T17:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI Extract text from JSON (a bit complex JSON returned from an API)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NIFI-Extract-text-from-JSON-a-bit-complex-JSON-returned-from/m-p/373981#M241841</link>
      <description>&lt;P&gt;PS: of course any other Processors instead of "&lt;SPAN&gt;ExtractText" that solve the problem is also welcome &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2023 17:06:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NIFI-Extract-text-from-JSON-a-bit-complex-JSON-returned-from/m-p/373981#M241841</guid>
      <dc:creator>Paulito</dc:creator>
      <dc:date>2023-07-17T17:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI Extract text from JSON (a bit complex JSON returned from an API)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NIFI-Extract-text-from-JSON-a-bit-complex-JSON-returned-from/m-p/373991#M241843</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/106034"&gt;@Paulito&lt;/a&gt;&amp;nbsp;Welcome to the Cloudera Community!&lt;BR /&gt;&lt;BR /&gt;To help you get the best possible solution, I have tagged our NiFi experts&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/95503"&gt;@steven-matison&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80381"&gt;@SAMSAL&lt;/a&gt;&amp;nbsp; who may be able to assist you further.&lt;BR /&gt;&lt;BR /&gt;Please keep us updated on your post, and we hope you find a satisfactory solution to your query.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2023 18:19:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NIFI-Extract-text-from-JSON-a-bit-complex-JSON-returned-from/m-p/373991#M241843</guid>
      <dc:creator>DianaTorres</dc:creator>
      <dc:date>2023-07-17T18:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI Extract text from JSON (a bit complex JSON returned from an API)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NIFI-Extract-text-from-JSON-a-bit-complex-JSON-returned-from/m-p/373992#M241844</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/106034"&gt;@Paulito&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;How do you like to get the output all the names and namesdesc? Would like to get them as list in json, csv or any other format, or you want them to be store in flowfile attributes ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2023 18:54:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NIFI-Extract-text-from-JSON-a-bit-complex-JSON-returned-from/m-p/373992#M241844</guid>
      <dc:creator>SAMSAL</dc:creator>
      <dc:date>2023-07-17T18:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI Extract text from JSON (a bit complex JSON returned from an API)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NIFI-Extract-text-from-JSON-a-bit-complex-JSON-returned-from/m-p/374026#M241860</link>
      <description>&lt;P&gt;Thanks Samsal, would be ok to have a json such as&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp; "LIST" : [ {&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"name": "JSMITH",&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"namedesc": "John Smith"&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp; }, {&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"name": "RSTONE",&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"namedesc": "Robert Stone"&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}]&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;or similarly in a CSV&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;"JSMITH", "John Smith"&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;"RSTONE", "Robert Stone"&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS: of course the number of records returned by the API can be more than 2 and also the numer of fields can be more than the example of 3 (depending on the list I ask to the API to return. I normally can see what it is returned so I can know in advance which are all the possible&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;"FIELDNAME"&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and the decide which are the fieldname I want to have in the JSON or in CSV, but it is of also fine to have all of them (in the example I gave they would be "name", "namedesc", "hireddate")&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 15:14:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NIFI-Extract-text-from-JSON-a-bit-complex-JSON-returned-from/m-p/374026#M241860</guid>
      <dc:creator>Paulito</dc:creator>
      <dc:date>2023-07-18T15:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI Extract text from JSON (a bit complex JSON returned from an API)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NIFI-Extract-text-from-JSON-a-bit-complex-JSON-returned-from/m-p/374052#M241865</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/106034"&gt;@Paulito&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;The easiest way I can think of is to do this in two Processors:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1- &lt;STRONG&gt;JoltTransformJson:&lt;/STRONG&gt; Allows you to transform your json by simplifying it into an array or records where each record has list of fieldname:fieldvalue. To achieve this you need to provide the following jolt spec in the "&lt;STRONG&gt;Jolt Specification&lt;/STRONG&gt;" property of the processor:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[
  {
    "operation": "shift",
    "spec": {
      "Result": {
        "ResultData": {
          "DATARECORD": {
            "*": {
              "DATAFIELD": {
                "*": {
                  "FIELDVALUE": "[&amp;amp;3].@(1,FIELDNAME)"
                }
              }
            }
          }
        }
      }
    }
  }
]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically the spec above will give you the following json based on the provided input:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[ {
  "name" : "JSMITH",
  "namedesc" : "John Smith",
  "hireddate" : "01-JAN-2010"
}, {
  "name" : "RSTONE",
  "namedesc" : "Robert Stone",
  "hireddate" : "01-JAN-2011"
} ]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2- QueryRecord&lt;/STRONG&gt; Processor: to allow you to select the fields you are interested in for the given API as follows. The query is just like sql query and you can either specify wildcard (*) for all fields or just list particular fields as follows:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SAMSAL_0-1689721462315.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/38018i9EE3D2E11E5B80A9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SAMSAL_0-1689721462315.png" alt="SAMSAL_0-1689721462315.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The out put of the QueryRecord will look like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[
	{
		"name": "JSMITH",
		"namedesc": "John Smith"
	},
	{
		"name": "RSTONE",
		"namedesc": "Robert Stone"
	}
]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Of course you can make this dynamic for each API by providing both the Jolt spec and the Query as flowfile attributes since both allow expression language (EL) in the value field.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can also achieve the same result by using just the Jolt Transformation processor but the spec would be more complex and I dont want to overwhelm you in case you are new to it, but if you are interested in that let me know and I will be happy to provide you the spec.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this helps please accept solution.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 23:13:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NIFI-Extract-text-from-JSON-a-bit-complex-JSON-returned-from/m-p/374052#M241865</guid>
      <dc:creator>SAMSAL</dc:creator>
      <dc:date>2023-07-18T23:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI Extract text from JSON (a bit complex JSON returned from an API)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NIFI-Extract-text-from-JSON-a-bit-complex-JSON-returned-from/m-p/374113#M241878</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80381"&gt;@SAMSAL&lt;/a&gt;&amp;nbsp;, the first processor works as a dream, (FANTASTIC THANKS).&lt;/P&gt;&lt;P&gt;For the second I might have missed something as I got correctly only name and namedesc, but they are all set to null...&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 13:18:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NIFI-Extract-text-from-JSON-a-bit-complex-JSON-returned-from/m-p/374113#M241878</guid>
      <dc:creator>Paulito</dc:creator>
      <dc:date>2023-07-19T13:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI Extract text from JSON (a bit complex JSON returned from an API)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NIFI-Extract-text-from-JSON-a-bit-complex-JSON-returned-from/m-p/374122#M241882</link>
      <description>&lt;P&gt;You are welcome. Have you changed anything in the jolt transformation spec, and if so how does the output looks like? Can you also provide the QueryRecord processor configuration.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 13:29:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NIFI-Extract-text-from-JSON-a-bit-complex-JSON-returned-from/m-p/374122#M241882</guid>
      <dc:creator>SAMSAL</dc:creator>
      <dc:date>2023-07-19T13:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI Extract text from JSON (a bit complex JSON returned from an API)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NIFI-Extract-text-from-JSON-a-bit-complex-JSON-returned-from/m-p/374141#M241884</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80381"&gt;@SAMSAL&lt;/a&gt;&amp;nbsp;, thanks alot for your time &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You find at the end of my message the json I got both after the jolt transfromation and after the queryrecord.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;As you can see I called a different list and the result has more fields than the original example, but I also change the queryrecord (select) acconrdling.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This is the&amp;nbsp;&lt;SPAN&gt;jolt transformation properties&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Paulito_3-1689783209655.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/38051iF1091B56EA3899E5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Paulito_3-1689783209655.png" alt="Paulito_3-1689783209655.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This is the query record properties (that I call just after the jolt)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Paulito_0-1689783040097.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/38050i272D2EDBFC9E9F7A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Paulito_0-1689783040097.png" alt="Paulito_0-1689783040097.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is the json result (beutify) after the jolt trasformation (I just send the first 3 records, in reality they are 100):&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;[ {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"class" : "STORE",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"classdesc" : "Stores",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"classorg" : "*",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"commissiondate" : "01-JAN-2010",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"datecreated" : "23-FEB-2021 13:57",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"equipmentdesc" : "Superstore",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"imageurl" : "",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"lastsaved" : "07-MAR-2021 13:39",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"latitude" : "",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"location" : "PURLEY",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"locationdesc" : "Purley",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"locationorg" : "RETAIL",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"locationtype" : "L",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"longitude" : "",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"obj_code" : "03293",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"orderline" : "",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"orderorg" : "",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"organization" : "RETAIL",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"partcode" : "",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"partorg" : "",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"poorder" : "",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"propertydefinition" : "",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"status" : "I",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"statusdesc" : "Installed",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"store" : "",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"systemstatus" : "I",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"systemstatusdesc" : "Installed",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"systemtype" : "P",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"type" : "SHOP",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"typedesc" : "Shop / Store"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;}, {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"class" : "AREA",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"classdesc" : "Area",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"classorg" : "*",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"commissiondate" : "01-JAN-2010",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"datecreated" : "23-FEB-2021 16:18",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"equipmentdesc" : "Extra - Yard",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"imageurl" : "",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"lastsaved" : "05-MAR-2021 15:09",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"latitude" : "51.4876",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"location" : "CARDIFF",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"locationdesc" : "Cardiff",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"locationorg" : "RETAIL",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"locationtype" : "L",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"longitude" : "",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"obj_code" : "02230.YRD",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"orderline" : "",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"orderorg" : "",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"organization" : "RETAIL",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"partcode" : "",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"partorg" : "",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"poorder" : "",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"propertydefinition" : "",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"status" : "I",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"statusdesc" : "Installed",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"store" : "",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"systemstatus" : "I",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"systemstatusdesc" : "Installed",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"systemtype" : "P",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"type" : "AREA",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"typedesc" : "Area"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;}, {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"class" : "AREA",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"classdesc" : "Area",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"classorg" : "*",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"commissiondate" : "01-JAN-2010",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"datecreated" : "23-FEB-2021 16:19",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"equipmentdesc" : "Extra - S/Floor Bakery",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"imageurl" : "",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"lastsaved" : "05-MAR-2021 15:09",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"latitude" : "",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"location" : "CARDIFF",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"locationdesc" : "Cardiff",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"locationorg" : "RETAIL",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"locationtype" : "L",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"longitude" : "",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"obj_code" : "02230.BAK",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"orderline" : "",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"orderorg" : "",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"organization" : "RETAIL",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"partcode" : "",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"partorg" : "",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"poorder" : "",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"propertydefinition" : "",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"status" : "I",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"statusdesc" : "Installed",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"store" : "",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"systemstatus" : "I",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"systemstatusdesc" : "Installed",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"systemtype" : "P",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"type" : "AREA",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"typedesc" : "Area"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;}&amp;nbsp;]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And this is what I got after the QueryRecord (taken the first 3 records, but all are the same)&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;[ {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"obj_code" : null,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"equipmentdesc" : null&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;}, {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"obj_code" : null,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"equipmentdesc" : null&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;}, {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"obj_code" : null,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"equipmentdesc" : null&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;}]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;So it seems that the queryrecord return the correct columns but they are empty.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Thanks again!!!&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 16:32:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NIFI-Extract-text-from-JSON-a-bit-complex-JSON-returned-from/m-p/374141#M241884</guid>
      <dc:creator>Paulito</dc:creator>
      <dc:date>2023-07-19T16:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI Extract text from JSON (a bit complex JSON returned from an API)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NIFI-Extract-text-from-JSON-a-bit-complex-JSON-returned-from/m-p/374144#M241885</link>
      <description>&lt;P&gt;hmmm, I dont see any issue with what you have sent. What is your JsonTreeReader &amp;amp; JsonRecordSetWriter looks like. Mine looks like the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SAMSAL_0-1689787150760.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/38052i09021E1A807BFC01/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SAMSAL_0-1689787150760.png" alt="SAMSAL_0-1689787150760.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SAMSAL_1-1689787179221.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/38053i70A365CC2871EF60/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SAMSAL_1-1689787179221.png" alt="SAMSAL_1-1689787179221.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also what version of Nifi are you using?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 17:20:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NIFI-Extract-text-from-JSON-a-bit-complex-JSON-returned-from/m-p/374144#M241885</guid>
      <dc:creator>SAMSAL</dc:creator>
      <dc:date>2023-07-19T17:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI Extract text from JSON (a bit complex JSON returned from an API)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NIFI-Extract-text-from-JSON-a-bit-complex-JSON-returned-from/m-p/374171#M241898</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80381"&gt;@SAMSAL&lt;/a&gt;&amp;nbsp;, here the information requested&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Paulito_0-1689832452971.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/38060i8422B82669CB3B02/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Paulito_0-1689832452971.png" alt="Paulito_0-1689832452971.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Paulito_1-1689832479351.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/38061i704978646EAEC692/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Paulito_1-1689832479351.png" alt="Paulito_1-1689832479351.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Paulito_2-1689832501506.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/38062i87F4C2C8F2B4B384/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Paulito_2-1689832501506.png" alt="Paulito_2-1689832501506.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for your help and time.&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 05:54:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NIFI-Extract-text-from-JSON-a-bit-complex-JSON-returned-from/m-p/374171#M241898</guid>
      <dc:creator>Paulito</dc:creator>
      <dc:date>2023-07-20T05:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI Extract text from JSON (a bit complex JSON returned from an API)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NIFI-Extract-text-from-JSON-a-bit-complex-JSON-returned-from/m-p/374223#M241908</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/106034"&gt;@Paulito&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I noticed you are using JsonPathReader vs JsonTreeReader which what I used. I'm not if the Path Reader is the right choice and if so how to configure correctly. I tried it in my test environment against your input with different JSONPath config and it did not work for me. Can you use JsonTreeReader instead?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 14:15:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NIFI-Extract-text-from-JSON-a-bit-complex-JSON-returned-from/m-p/374223#M241908</guid>
      <dc:creator>SAMSAL</dc:creator>
      <dc:date>2023-07-20T14:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: NIFI Extract text from JSON (a bit complex JSON returned from an API)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NIFI-Extract-text-from-JSON-a-bit-complex-JSON-returned-from/m-p/374227#M241911</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80381"&gt;@SAMSAL&lt;/a&gt;&amp;nbsp;my bad !!! I start to be old i need better glasses &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You are right it works fantastically !!!&lt;/P&gt;&lt;P&gt;THANKS!!!!!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 15:54:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NIFI-Extract-text-from-JSON-a-bit-complex-JSON-returned-from/m-p/374227#M241911</guid>
      <dc:creator>Paulito</dc:creator>
      <dc:date>2023-07-20T15:54:20Z</dc:date>
    </item>
  </channel>
</rss>

