<?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: Extract string nested in JSON value in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Extract-string-nested-in-JSON-value/m-p/305210#M222349</link>
    <description>&lt;P&gt;Refer the following template&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;A title="You can refer this template" href="https://drive.google.com/file/d/1e1q8xm-65WHHwGNsxyeRUSkRIw7ETO4B/view?usp=sharing" target="_self"&gt;https://drive.google.com/file/d/1e1q8xm-65WHHwGNsxyeRUSkRIw7ETO4B/view?usp=sharing&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="answer.png" style="width: 319px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/29318i6E9DFC2F890CB33C/image-size/large?v=v2&amp;amp;px=999" role="button" title="answer.png" alt="answer.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 31 Oct 2020 14:27:51 GMT</pubDate>
    <dc:creator>suraj143</dc:creator>
    <dc:date>2020-10-31T14:27:51Z</dc:date>
    <item>
      <title>Extract string nested in JSON value</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Extract-string-nested-in-JSON-value/m-p/305099#M222316</link>
      <description>&lt;P&gt;&lt;STRONG&gt;UPDATE&lt;/STRONG&gt;: If you ever need to modify a record use this solution:&amp;nbsp;&lt;A href="https://community.cloudera.com/t5/Support-Questions/NiFi-UpdateRecord-processor-is-not-updating-JSON-path/m-p/186256" target="_blank"&gt;https://community.cloudera.com/t5/Support-Questions/NiFi-UpdateRecord-processor-is-not-updating-JSON-path/m-p/186256&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ORIGINAL question&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;How can I extract a string nested in the value of a JSON? For the &lt;STRONG&gt;status&lt;/STRONG&gt; key below, I only want the value &lt;STRONG&gt;Active&lt;/STRONG&gt;, instead of&amp;nbsp;&lt;STRONG&gt;MapRecord[{current_status=Active}]&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original JSON&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
  "indicator": "147.183.200.154",
  "timestamp": 1577742090000,
  "status": "MapRecord[{current_status=Active}]"
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Desired final JSON&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
  "indicator": "147.183.200.154",
  "timestamp": 1577742090000,
  "status": "Active"
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2020 21:55:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Extract-string-nested-in-JSON-value/m-p/305099#M222316</guid>
      <dc:creator>vatodorov19</dc:creator>
      <dc:date>2020-10-29T21:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: Extract string nested in JSON value</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Extract-string-nested-in-JSON-value/m-p/305210#M222349</link>
      <description>&lt;P&gt;Refer the following template&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;A title="You can refer this template" href="https://drive.google.com/file/d/1e1q8xm-65WHHwGNsxyeRUSkRIw7ETO4B/view?usp=sharing" target="_self"&gt;https://drive.google.com/file/d/1e1q8xm-65WHHwGNsxyeRUSkRIw7ETO4B/view?usp=sharing&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="answer.png" style="width: 319px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/29318i6E9DFC2F890CB33C/image-size/large?v=v2&amp;amp;px=999" role="button" title="answer.png" alt="answer.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 31 Oct 2020 14:27:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Extract-string-nested-in-JSON-value/m-p/305210#M222349</guid>
      <dc:creator>suraj143</dc:creator>
      <dc:date>2020-10-31T14:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: Extract string nested in JSON value</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Extract-string-nested-in-JSON-value/m-p/305281#M222376</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/82702"&gt;@suraj143&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I ended up using an UpdateRecord, but your approach with a JoltTransformJSON also works.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2020 13:32:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Extract-string-nested-in-JSON-value/m-p/305281#M222376</guid>
      <dc:creator>vatodorov19</dc:creator>
      <dc:date>2020-11-02T13:32:49Z</dc:date>
    </item>
  </channel>
</rss>

