<?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>topic Re: JSON input in proc http in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/JSON-input-in-proc-http/m-p/740473#M231314</link>
    <description>&lt;P&gt;&lt;A title="JSON is standardized to use double-quotes, to the degree that this would not be considered standard JSON and would error in a JSON parser." href="https://github.com/airbnb/javascript/issues/441#:~:text=JSON%20is%20standardized%20to%20use,error%20in%20a%20JSON%20parser." target="_blank" rel="noopener"&gt;&lt;STRONG&gt;JSON&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;is standardized to use&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;double&lt;/STRONG&gt;&lt;SPAN&gt;-&lt;/SPAN&gt;&lt;STRONG&gt;quotes&lt;/STRONG&gt;&lt;SPAN&gt;, to the degree that this would not be considered standard&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;JSON&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;and would error in a&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;JSON&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;parser.&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 11 May 2021 14:12:35 GMT</pubDate>
    <dc:creator>Oligolas</dc:creator>
    <dc:date>2021-05-11T14:12:35Z</dc:date>
    <item>
      <title>JSON input in proc http</title>
      <link>https://communities.sas.com/t5/SAS-Programming/JSON-input-in-proc-http/m-p/740181#M231153</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've searched around for a similar problem, so if I've missed something, please let me know.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to make proc http work with an restAPI. I am able to do it via curl and Python, so the API itself should be fine. Since this is a local web-service, it'll be hard to replicate the error, but let me know if there's anything I can do to make the description more thorough.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using SAS EG 8.1. This is what I've tried so far:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attempt number 1:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename json_in "C:\Temp\json_in.json";
data _null_;
file json_in;
put '{';
put '"valueDate": "2021-05-10T04:32:34.394Z",';
put '"inputSpecification": "TESTINP",';
put '"name": "FOO",';
put '"parameters": [';
put '{';
put '"name": "Parameter1",';
put '"title": "My Parameter",';
put '"value": "coverstat1"';
put '}';
put '],';
put '"configuration": "TESTCONF",';
put '"scenarios": [';
put '"Scen1"';
put '],';
put '"outputDestination": "Database"';
put '}';
run;
filename out "C:\temp\out.txt";
proc http url="http://blah/api/v2/Batches" 
METHOD="POST"
in="C:\temp\json_in.json"
ct="application/json"
out=out;
headers "accept"="application/json" 
/*"Content-Type"="application/json"*/;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Attempt number 2:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc http METHOD="POST" 
url="http://blah/api/v2/Batches" 
ct="application/json"
in="{ ""valueDate"": ""2021-05-10T04:32:34.394Z"", ""inputSpecification"": ""TESTINP"", ""name"": ""FOO"", ""configuration"": ""TESTCONF"", ""scenarios"": {[""SCEN1""]}, ""parameters"": [{""name"": ""Parameter1"", ""title"": ""MyParameter"", ""value"": ""coverstat1""}]"
ct="application/json"
out=out;
headers "accept"="application/json";
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Both of these attempt yield the same error from the API:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{"detail":"Value cannot be null.\r\nParameter name: source"}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apparently this has to do with the parameter-input being multi-dimensional. Is there any way of handling this in SAS?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For completeness, this is the Python-code that works:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;import requests

params = {
  "valueDate": "2021-05-10T04:32:34.394Z",
  "inputSpecification": "TESTINP",
  "name": "FOO",
  "parameters": [
    {
      "name": "Parameter1",
      "title": "My Parameter",
      "value": "coverstat1"
    }
  ],
  "configuration": "TESTCONF",
  "scenarios": [
    "SCEN1"
  ],
  "outputDestination": "Database"
}
url = 'http://blah/api/v2/Batches'
headers = {'accept': 'application/json'}
response = requests.post(url, json=params, headers=headers)

print(response.json())&lt;/PRE&gt;&lt;P&gt;I know it's not ideal, that the webservice can't be accessed by people here, but hopefully I've done enough to describe the problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 14:05:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/JSON-input-in-proc-http/m-p/740181#M231153</guid>
      <dc:creator>SGSP</dc:creator>
      <dc:date>2021-05-10T14:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: JSON input in proc http</title>
      <link>https://communities.sas.com/t5/SAS-Programming/JSON-input-in-proc-http/m-p/740196#M231162</link>
      <description>&lt;P&gt;The IN= accepts either a&amp;nbsp;&lt;STRONG&gt;fileref&lt;/STRONG&gt; (no quotes, not a literal filename) or the&amp;nbsp;&lt;STRONG&gt;content&lt;/STRONG&gt; of the payload you want to POST. So your first example should be:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;proc http url="http://blah/api/v2/Batches" 
 METHOD="POST"
 in=json_in
 ct="application/json"
 out=out;
 headers "accept"="application/json" 
run;&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 10 May 2021 14:45:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/JSON-input-in-proc-http/m-p/740196#M231162</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2021-05-10T14:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: JSON input in proc http</title>
      <link>https://communities.sas.com/t5/SAS-Programming/JSON-input-in-proc-http/m-p/740198#M231164</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the code itself seems to work; when I'm using&amp;nbsp;url="&lt;A href="http://httpbin.org/put" target="_blank" rel="noopener"&gt;http://httpbin.org/put&lt;/A&gt;" I get no errors.&lt;/P&gt;
&lt;P&gt;correction:&amp;nbsp;url="&lt;A href="http://httpbin.org/post" target="_blank"&gt;http://httpbin.org/post&lt;/A&gt;"&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 09:02:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/JSON-input-in-proc-http/m-p/740198#M231164</guid>
      <dc:creator>Oligolas</dc:creator>
      <dc:date>2021-05-11T09:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: JSON input in proc http</title>
      <link>https://communities.sas.com/t5/SAS-Programming/JSON-input-in-proc-http/m-p/740221#M231175</link>
      <description>Thanks for your reply. I did try with the direct reference to json_in as well. Still the same error.</description>
      <pubDate>Mon, 10 May 2021 16:05:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/JSON-input-in-proc-http/m-p/740221#M231175</guid>
      <dc:creator>SGSP</dc:creator>
      <dc:date>2021-05-10T16:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: JSON input in proc http</title>
      <link>https://communities.sas.com/t5/SAS-Programming/JSON-input-in-proc-http/m-p/740384#M231278</link>
      <description>&lt;P&gt;This is weird. When I do the same thing, I get the following reply:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"&amp;gt;
&amp;lt;title&amp;gt;405 Method Not Allowed&amp;lt;/title&amp;gt;
&amp;lt;h1&amp;gt;Method Not Allowed&amp;lt;/h1&amp;gt;
&amp;lt;p&amp;gt;The method is not allowed for the requested URL.&amp;lt;/p&amp;gt;&lt;/PRE&gt;&lt;P&gt;I'm guessing this also has to do with the multi-dimensional parameters input. Could it be something to do with the version I'm running? (SAS EG 8.1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 06:08:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/JSON-input-in-proc-http/m-p/740384#M231278</guid>
      <dc:creator>SGSP</dc:creator>
      <dc:date>2021-05-11T06:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: JSON input in proc http</title>
      <link>https://communities.sas.com/t5/SAS-Programming/JSON-input-in-proc-http/m-p/740406#M231285</link>
      <description>&lt;P&gt;That is a message you get from the website. The particular URL does not allow a PUT method for the HTTP request. It may be that you use the URL of a page where the actual PUT request is triggered through a &lt;EM&gt;button&lt;/EM&gt; on that page.&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 08:42:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/JSON-input-in-proc-http/m-p/740406#M231285</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-05-11T08:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: JSON input in proc http</title>
      <link>https://communities.sas.com/t5/SAS-Programming/JSON-input-in-proc-http/m-p/740410#M231288</link>
      <description>&lt;P&gt;Sorry my bad the URL for test should be&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;url="http://httpbin.org/post"&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 11 May 2021 09:01:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/JSON-input-in-proc-http/m-p/740410#M231288</guid>
      <dc:creator>Oligolas</dc:creator>
      <dc:date>2021-05-11T09:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: JSON input in proc http</title>
      <link>https://communities.sas.com/t5/SAS-Programming/JSON-input-in-proc-http/m-p/740445#M231300</link>
      <description>&lt;P&gt;Thanks for showing me that website, I'm not used to working with SAS or APIs, and that'll be a big help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I still haven't found a solution, however, but I have a bit more information. When I run the following&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename out "\\sas00750\analyse3\AKF\Data\Personlige\SIG\out.txt";
filename json_in "\\sas00750\analyse3\AKF\Data\Personlige\SIG\json_in.json";
data _null_;
file json_in recfm=f lrecl=1;
put '{"valueDate": "2021-05-10T04:32:34.394Z", "inputSpecification": "TESTINP", "name": "FOO", "parameters": [{"name": "Parameter1", "title": "My Parameter", "value": "coverstat1"}], "configuration": "TESTCONF", "scenarios": ["SCEN1"], "outputDestination": "Database"}';
run;
proc http METHOD="POST" 
url="http://httpbin.org/post" 
ct="application/json"
in=json_in 
ct="application/json"
out=out;
headers "accept"="application/json";
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I get this response:&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;PRE&gt;{
  "args": {}, 
  "data": "{\"valueDate\": \"2021-05-10T04:32:34.394Z\", \"inputSpecification\": \"TESTINP\", \"name\": \"FOO\", \"parameters\": [{\"name\": \"Parameter1\", \"title\": \"My Parameter\", \"value\": \"coverstat1\"}], \"configuration\": \"TESTCONF\", \"scenarios\": [\"SCEN1\"], \"outputDestination\": \"Database\"}", 
  "files": {}, 
  "form": {}, 
  "headers": {
    "Accept": "application/json", 
    "Content-Length": "263", 
    "Content-Type": "application/json", 
    "Host": "httpbin.org", 
    "User-Agent": "SAS/9", 
    "X-Amzn-Trace-Id": "Root=1-609a7799-4b92fc8f27fb3ea812533140"
  }, 
  "json": {
    "configuration": "TESTCONF", 
    "inputSpecification": "TESTINP", 
    "name": "FOO", 
    "outputDestination": "Database", 
    "parameters": [
      {
        "name": "Parameter1", 
        "title": "My Parameter", 
        "value": "coverstat1"
      }
    ], 
    "scenarios": [
      "SCEN1"
    ], 
    "valueDate": "2021-05-10T04:32:34.394Z"
  }, 
  "origin": "", 
  "url": "http://httpbin.org/post"
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I run the Python code that works (see original post) I get this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{
  'args': {}, 
  'data': '{"valueDate": "2021-05-10T04:32:34.394Z", "inputSpecification": "TESTINP", "name": "FOO", "parameters": [{"name": "Parameter1", "title": "My Parameter", "value": "coverstat1"}], "configuration": "TESTCONF", "scenarios": ["SCEN1"], "outputDestination": "Database"}', 
  'files': {}, 
  'form': {}, 
  'headers': {
    'Accept': 'application/json', 
    'Accept-Encoding': 'gzip, deflate', 
    'Content-Length': '263', 
    'Content-Type': 'application/json', 
    'Host': 'httpbin.org', 
    'User-Agent': 'python-requests/2.25.1', 
    'X-Amzn-Trace-Id': 'Root=1-609a7993-516acbb91c5c1f902ee96668'
  }, 
  'json': {
    'configuration': 'TESTCONF', 
    'inputSpecification': 'TESTINP', 
    'name': 'FOO', 
    'outputDestination': 'Database', 
    'parameters': [
      {
        'name': 'Parameter1', 
        'title': 'My Parameter', 
        'value': 'coverstat1'
      }
    ], 
    'scenarios': [
      'SCEN1'
    ], 
    'valueDate': '2021-05-10T04:32:34.394Z'
  }, 
  'origin': '', 
  'url': 'http://httpbin.org/post'
}&lt;/PRE&gt;&lt;P&gt;Note: When I replace the single quotes with double quotes and vice versa, in the SAS program, then it doesn't seem like httpbin interprets it as json.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm wondering if it could be an encoding issue, since the python request includes&amp;nbsp;'Accept-Encoding': 'gzip, deflate'? Is there a similar option to set in SAS?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 12:48:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/JSON-input-in-proc-http/m-p/740445#M231300</guid>
      <dc:creator>SGSP</dc:creator>
      <dc:date>2021-05-11T12:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: JSON input in proc http</title>
      <link>https://communities.sas.com/t5/SAS-Programming/JSON-input-in-proc-http/m-p/740452#M231303</link>
      <description>&lt;P&gt;You already have a HEADERS statement, and you could add to that:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;headers "accept"="application/json"
        "Accept-Encoding"="gzip, deflate";&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 11 May 2021 13:05:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/JSON-input-in-proc-http/m-p/740452#M231303</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2021-05-11T13:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: JSON input in proc http</title>
      <link>https://communities.sas.com/t5/SAS-Programming/JSON-input-in-proc-http/m-p/740465#M231307</link>
      <description>&lt;P&gt;Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This unfortunately doesn't solve the problem. But now the only remaining difference seems to be the double quotes/single quotes. Perhaps the application only accepts the single quotes. Does anyone have an idea as to why the response from httpbin is in single quotes when I use Python or curl and in double quotes when I use SAS?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 13:59:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/JSON-input-in-proc-http/m-p/740465#M231307</guid>
      <dc:creator>SGSP</dc:creator>
      <dc:date>2021-05-11T13:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: JSON input in proc http</title>
      <link>https://communities.sas.com/t5/SAS-Programming/JSON-input-in-proc-http/m-p/740473#M231314</link>
      <description>&lt;P&gt;&lt;A title="JSON is standardized to use double-quotes, to the degree that this would not be considered standard JSON and would error in a JSON parser." href="https://github.com/airbnb/javascript/issues/441#:~:text=JSON%20is%20standardized%20to%20use,error%20in%20a%20JSON%20parser." target="_blank" rel="noopener"&gt;&lt;STRONG&gt;JSON&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;is standardized to use&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;double&lt;/STRONG&gt;&lt;SPAN&gt;-&lt;/SPAN&gt;&lt;STRONG&gt;quotes&lt;/STRONG&gt;&lt;SPAN&gt;, to the degree that this would not be considered standard&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;JSON&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;and would error in a&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;JSON&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;parser.&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 14:12:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/JSON-input-in-proc-http/m-p/740473#M231314</guid>
      <dc:creator>Oligolas</dc:creator>
      <dc:date>2021-05-11T14:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: JSON input in proc http</title>
      <link>https://communities.sas.com/t5/SAS-Programming/JSON-input-in-proc-http/m-p/740489#M231327</link>
      <description>&lt;P&gt;That's true, but what confuses me is that the response from httpbin is in single-quotes when I use Python or curl, even though my json input is in double-quotes. Then, when I use SAS, the response is in double-quotes.&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 14:47:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/JSON-input-in-proc-http/m-p/740489#M231327</guid>
      <dc:creator>SGSP</dc:creator>
      <dc:date>2021-05-11T14:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: JSON input in proc http</title>
      <link>https://communities.sas.com/t5/SAS-Programming/JSON-input-in-proc-http/m-p/740526#M231341</link>
      <description>&lt;P&gt;It's confusing to me too&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 15:50:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/JSON-input-in-proc-http/m-p/740526#M231341</guid>
      <dc:creator>Oligolas</dc:creator>
      <dc:date>2021-05-11T15:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: JSON input in proc http</title>
      <link>https://communities.sas.com/t5/SAS-Programming/JSON-input-in-proc-http/m-p/740546#M231352</link>
      <description>&lt;P&gt;I don't see any parameter named "source" in your JSON.&lt;/P&gt;
&lt;P&gt;Are you sure you are sending the same JSON as you send with the other methods?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 16:50:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/JSON-input-in-proc-http/m-p/740546#M231352</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-05-11T16:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: JSON input in proc http</title>
      <link>https://communities.sas.com/t5/SAS-Programming/JSON-input-in-proc-http/m-p/740557#M231360</link>
      <description>If I have to be completely honest, I’m not entirely sure about anything. I’m a bit of a novice with both SAS and APIs.&lt;BR /&gt;&lt;BR /&gt;But going by the responses from httpbin that I poster earlier, it seems like the only difference between the response for the Python request and the response for the SAS request is the quotation marks. At least after I added the header.</description>
      <pubDate>Tue, 11 May 2021 17:23:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/JSON-input-in-proc-http/m-p/740557#M231360</guid>
      <dc:creator>SGSP</dc:creator>
      <dc:date>2021-05-11T17:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: JSON input in proc http</title>
      <link>https://communities.sas.com/t5/SAS-Programming/JSON-input-in-proc-http/m-p/740558#M231361</link>
      <description>Oh, and the data line as well. I have no idea if those two differences are connected to each other.</description>
      <pubDate>Tue, 11 May 2021 17:26:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/JSON-input-in-proc-http/m-p/740558#M231361</guid>
      <dc:creator>SGSP</dc:creator>
      <dc:date>2021-05-11T17:26:38Z</dc:date>
    </item>
  </channel>
</rss>

