title: request payload from Postman works but mine doesn't - unexpected token error
body: <p>I took the Python-Requests code from my postman POST request that looks like the following:</p>
  <pre><code>payload=&quot;{\&quot;action\&quot;:\&quot;ask\&quot;,
  \&quot;PortfolioItem\&quot;:{\&quot;localAmount\&quot;:0,\&quot;expiresAt\&quot;:\&quot;2021-04-25T18:50:09+0000\&quot;,\&quot;skuUuid\&quot;:\&quot;9c0b30f6-d2e0-49ff-b8fa-c30a4d8d9b82\&quot;,\&quot;localCurrency\&quot;:\&quot;USD\&quot;,\&quot;meta\&quot;:{\&quot;discountCode\&quot;:\&quot;\&quot;}}}&quot;
  
  headers = {//bunch of headers}
  
  response = requests.request(&quot;POST&quot;, url, headers=headers, data=payload)
  
  print(response.text)
  </code></pre>
  <p>This works fine. But when I try passing new information into the payload, using the following code:</p>
  <pre><code>//initialize an empty payload object
  payload = {
   'action': 'ask','PortfolioItem': {'expiresAt': '',
    'localAmount': 0,
    'localCurrency': 'USD',
    'meta': {'discountCode': ''},
    'skuUuid': ''
  }}
  
  //populate it with data I want to add
  payload['PortfolioItem']['expiresAt'] = expiration
  payload['PortfolioItem']['localAmount'] = price
  payload['PortfolioItem']['skuUuid'] = sku_id
  
  response = requests.request(&quot;POST&quot;, url, headers=headers, data=payload)
  
  print(response.text)
  </code></pre>
  <p>I get the following error: <code>{&quot;message&quot;:&quot;Unexpected token P in JSON at position 0&quot;}</code>.
  I tried turning my payload into a string as well, ie: <code>data=str(payload)</code>, but that returns the same error <code>{&quot;message&quot;:&quot;Unexpected token ' in JSON at position 0&quot;}</code>.
  On top of that, I tried just splitting up the original payload and concatenating it with the new data in between, but I need to pass integer values so concatenating doesn't work (unless there's a way I can do that without it converting my int into a string).
  Not sure what is wrong, any help would be appreciated!</p>