<?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: Invalid JSON Unexpected character Error - POST request in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Invalid-JSON-Unexpected-character-Error-POST-request/m-p/298400#M219146</link>
    <description>&lt;P&gt;Thank you it worked. I also used "1" for the number to make it work but it indeed worked.&lt;/P&gt;</description>
    <pubDate>Mon, 22 Jun 2020 11:10:34 GMT</pubDate>
    <dc:creator>ajay_mamgain200</dc:creator>
    <dc:date>2020-06-22T11:10:34Z</dc:date>
    <item>
      <title>Invalid JSON Unexpected character Error - POST request</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Invalid-JSON-Unexpected-character-Error-POST-request/m-p/298348#M219114</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm getting the JSON error when I'm making the post request. Please note that it works perfectly fine in Postman. Can some please help me out thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Post body Template&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;LI-CODE lang="javascript"&gt;{ 
   "format": "CSV",
   "filter": { 
      "createdAt": { 
         "startAt": 2020-06-20 16:33:19.780Z,
         "endAt": 2020-06-21 16:33:19.780Z
      },
      "activityTypeIds": [
         1               
         ]    
   }
}&lt;/LI-CODE&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;Error code :&amp;nbsp;"Invalid JSON. Unexpected character ('-' (code 45)): was expecting comma to separate Object entries"}]}&lt;/P&gt;</description>
      <pubDate>Sun, 21 Jun 2020 11:19:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Invalid-JSON-Unexpected-character-Error-POST-request/m-p/298348#M219114</guid>
      <dc:creator>ajay_mamgain200</dc:creator>
      <dc:date>2020-06-21T11:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid JSON Unexpected character Error - POST request</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Invalid-JSON-Unexpected-character-Error-POST-request/m-p/298349#M219115</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/49872"&gt;@ajay_mamgain200&lt;/a&gt;&amp;nbsp; &amp;nbsp;You need to quote your json values like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{ 
   "format": "CSV",
   "filter": { 
      "createdAt": { 
         "startAt": "2020-06-20 16:33:19.780Z",
         "endAt": "2020-06-21 16:33:19.780Z"
      },
      "activityTypeIds": [
         1               
         ]    
   }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You may need to modify the activityTypeIds too. &amp;nbsp; I commend your use of Postman for testing before implementing the test in NiFi. &amp;nbsp;This is exactly what I do to determine operational base sample call formats to a service before starting to implement in NiFi. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this answer resolves your issue or allows you to move forward, please choose to ACCEPT this solution and close this topic. If you have further dialogue on this topic please comment here or feel free to private message me. If you have new questions related to your Use Case please create separate topic and feel free to tag me in your post. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Steven&amp;nbsp;@ DFHZ&lt;/P&gt;</description>
      <pubDate>Sun, 21 Jun 2020 12:50:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Invalid-JSON-Unexpected-character-Error-POST-request/m-p/298349#M219115</guid>
      <dc:creator>stevenmatison</dc:creator>
      <dc:date>2020-06-21T12:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid JSON Unexpected character Error - POST request</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Invalid-JSON-Unexpected-character-Error-POST-request/m-p/298400#M219146</link>
      <description>&lt;P&gt;Thank you it worked. I also used "1" for the number to make it work but it indeed worked.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jun 2020 11:10:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Invalid-JSON-Unexpected-character-Error-POST-request/m-p/298400#M219146</guid>
      <dc:creator>ajay_mamgain200</dc:creator>
      <dc:date>2020-06-22T11:10:34Z</dc:date>
    </item>
  </channel>
</rss>

