<?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 - incorrect json format correction in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/nifi-incorrect-json-format-correction/m-p/232991#M194824</link>
    <description>&lt;A rel="user" href="https://community.cloudera.com/users/56179/muratmentese.html" nodeid="56179" target="_blank"&gt;@Murat Menteşe &lt;/A&gt;&lt;P&gt;You can use &lt;STRONG&gt;ReplaceText &lt;/STRONG&gt;processor after TransformXml processor then add the matching regex excluding "(quotes) before/after array [].&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ReplaceText Configs:-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Search Value
&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;(.*)"(\[.*\])"(.*)&lt;/PRE&gt;
&lt;/DIV&gt;&lt;P&gt;Replacement Value
&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;$1$2$3&lt;/PRE&gt;
&lt;/DIV&gt;&lt;P&gt;Character Set
&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;UTF-8&lt;/PRE&gt;
&lt;/DIV&gt;&lt;P&gt;Maximum Buffer Size
&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;1 MB //increase the size according to your flowfile size&lt;/PRE&gt;
&lt;/DIV&gt;&lt;P&gt;Replacement Strategy
&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;Regex Replace&lt;/PRE&gt;
&lt;/DIV&gt;&lt;P&gt;Evaluation Mode
&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;Entire text&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="78526-replacetext.png" style="width: 1339px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/14794i4B31BD898AEB30A5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="78526-replacetext.png" alt="78526-replacetext.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Input:-&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;{ "soap:Envelope": { "soap:Body": { "Musteri_Hiyerarsi_TablosuResponse": { "Musteri_Hiyerarsi_TablosuResult": "[ { "UNIQ_KEY": 740281.0, "TTALT": 112.0, "TTAD": "TEST" } ]" } } } }&lt;/PRE&gt;&lt;P&gt;&lt;U&gt;Output: &lt;/U&gt;valid json&lt;/P&gt;&lt;PRE&gt;{ "soap:Envelope": { "soap:Body": { "Musteri_Hiyerarsi_TablosuResponse": { "Musteri_Hiyerarsi_TablosuResult": [ { "UNIQ_KEY": 740281.0, "TTALT": 112.0, "TTAD": "TEST" } ] } } } }&lt;/PRE&gt;</description>
    <pubDate>Sun, 18 Aug 2019 00:20:34 GMT</pubDate>
    <dc:creator>Shu_ashu</dc:creator>
    <dc:date>2019-08-18T00:20:34Z</dc:date>
  </channel>
</rss>

