<?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 Double Quotes removed from JSON message when passing an attribute to ExecuteScriptCommand Processor in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Double-Quotes-removed-from-JSON-message-when-passing-an/m-p/278590#M208126</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am using two steps in Nifi:&lt;/P&gt;
&lt;P&gt;1. The first step is InvokeHTTP processor to make a REST API call and receive a JSON response.&amp;nbsp; I have used "Put Response Body In Attribute"&amp;nbsp; to store the JSON response into an attribute.&lt;/P&gt;
&lt;P&gt;2. The next step is ExecuteStreamCommand processor to invoke Python script and&amp;nbsp; passing the JSON response attribute from previous step as an input argument.&amp;nbsp; The Command Argument passed to the processor is:&lt;/P&gt;
&lt;P&gt;/home/kavipriya/script/Scaling.py;"${AssetModel}";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am able to read the JSON message within my python script, but the double quotes within original JSON message are removed by Nifi and I get following error when parsing the JSON message:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 3 column 5 (char 10)"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can someone tell me why are the double quotes removed when JSON message passed as argument and also if there is an option to retain the double quotes.&amp;nbsp; Thanks for your help!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have attached the screenshots and also the JSON message passed to python script and also the python logs showing double quotes missing when reading the argument.&lt;/P&gt;</description>
    <pubDate>Tue, 01 Oct 2019 12:42:47 GMT</pubDate>
    <dc:creator>Nifi1</dc:creator>
    <dc:date>2019-10-01T12:42:47Z</dc:date>
  </channel>
</rss>

