title: JSON to Python3 POST (shipcloud API)
body: <p>I want to create a shipment in Shipcloud via API-POST. As described in the docs <a href="https://developers.shipcloud.io/reference/shipments_request_schema.html" rel="nofollow noreferrer">https://developers.shipcloud.io/reference/shipments_request_schema.html</a>
  I am using the requests module for Python3. And i am trying to convert this json to a python because iam getting "NameError: name 'true' is not defined". I found a similar example on github <a href="https://github.com/vinothzeabalane/shipcloud/commit/5d2becbd34323147bf53424b8550d604f2877a8b" rel="nofollow noreferrer">Github example vinothzeabalane</a> but this one is for getting the addresses.
  Why doesnt this work?</p>
  
  <pre><code>import requests
  import json
  from shipcloud_apikey import bk_sandbox_apikey
  
  datas = {
  
    {
    "to": {
        "company": "Receiver Inc.",
        "first_name": "John",
        "last_name": "Doe",
        "street": "Beispielstrasse",
        "street_no": "42",
        "city": "Musterhausen",
        "zip_code": "22100",
        "country": "DE"
    },
    "package": {
        "weight": 15,
        "length": 30,
        "width": 30,
        "height": 30,
        "type": "parcel"
    },
    "carrier": "dpd",
    "service": "standard",
    "reference_number": "ref123456",
    "notification_email": "john.doe@company.com",
    "create_shipping_label": true
    }
  }
  
  pydata = json.load(datas)
  
  
  requests.post('https://api.shipcloud.io/v1/shipments', auth=('bk_sandbox_apikey', ''), data = pydata)
  </code></pre>