<?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 convert url parameters into json - Apache Nifi in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/convert-url-parameters-into-json-Apache-Nifi/m-p/310972#M224389</link>
    <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry if this question seems dumb, but I have query parameter (that I received via ListenHttp) in format a=value_a&amp;amp;b=value_b and so on, I want to convert this to json as the form given below -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;"a" : "value_a",&lt;/P&gt;&lt;P&gt;"b" : "value_b"&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not quite sure, but I think I should be using ReplaceText, but I am unable to understand how to write the regex. If using ReplaceText is the one I should not use on Nifi, then please do let me know how to approach the same?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Ashwin&lt;/P&gt;</description>
    <pubDate>Thu, 04 Feb 2021 06:05:39 GMT</pubDate>
    <dc:creator>ashwinrk</dc:creator>
    <dc:date>2021-02-04T06:05:39Z</dc:date>
    <item>
      <title>convert url parameters into json - Apache Nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/convert-url-parameters-into-json-Apache-Nifi/m-p/310972#M224389</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry if this question seems dumb, but I have query parameter (that I received via ListenHttp) in format a=value_a&amp;amp;b=value_b and so on, I want to convert this to json as the form given below -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;"a" : "value_a",&lt;/P&gt;&lt;P&gt;"b" : "value_b"&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not quite sure, but I think I should be using ReplaceText, but I am unable to understand how to write the regex. If using ReplaceText is the one I should not use on Nifi, then please do let me know how to approach the same?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Ashwin&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2021 06:05:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/convert-url-parameters-into-json-Apache-Nifi/m-p/310972#M224389</guid>
      <dc:creator>ashwinrk</dc:creator>
      <dc:date>2021-02-04T06:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: convert url parameters into json - Apache Nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/convert-url-parameters-into-json-Apache-Nifi/m-p/310978#M224393</link>
      <description>&lt;P&gt;I was able to convert the same using replace text&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Search Value:&amp;nbsp;(.*)=(.*)&amp;amp;(.*)=(.*)&amp;amp;(.*)=(.*)&amp;amp;(.*)=(.*)&lt;/P&gt;&lt;P&gt;Replace Value:&amp;nbsp;{'$1':'$2','$3':'$4','$5':'$6','$7':'$8'}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since the number of parameters for me was fixed to 4, this was enough to suffice me! If somebody has got an Idea how to do this dynamically, I am ears!&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2021 08:14:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/convert-url-parameters-into-json-Apache-Nifi/m-p/310978#M224393</guid>
      <dc:creator>ashwinrk</dc:creator>
      <dc:date>2021-02-04T08:14:53Z</dc:date>
    </item>
  </channel>
</rss>

