{"action":"closed","issue":{"url":"https://api.github.com/repos/stripe/stripe-python/issues/220","repository_url":"https://api.github.com/repos/stripe/stripe-python","labels_url":"https://api.github.com/repos/stripe/stripe-python/issues/220/labels{/name}","comments_url":"https://api.github.com/repos/stripe/stripe-python/issues/220/comments","events_url":"https://api.github.com/repos/stripe/stripe-python/issues/220/events","html_url":"https://github.com/stripe/stripe-python/issues/220","id":145843352,"number":220,"title":"json.dumps Fails when no indent option is provided","user":{"login":"vcatalano","id":1147519,"avatar_url":"https://avatars.githubusercontent.com/u/1147519?v=3","gravatar_id":"","url":"https://api.github.com/users/vcatalano","html_url":"https://github.com/vcatalano","followers_url":"https://api.github.com/users/vcatalano/followers","following_url":"https://api.github.com/users/vcatalano/following{/other_user}","gists_url":"https://api.github.com/users/vcatalano/gists{/gist_id}","starred_url":"https://api.github.com/users/vcatalano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vcatalano/subscriptions","organizations_url":"https://api.github.com/users/vcatalano/orgs","repos_url":"https://api.github.com/users/vcatalano/repos","events_url":"https://api.github.com/users/vcatalano/events{/privacy}","received_events_url":"https://api.github.com/users/vcatalano/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-04-05T00:30:54Z","updated_at":"2016-04-12T22:07:44Z","closed_at":"2016-04-12T22:07:44Z","body":"Calling `json.dumps` on a Customer object causes a TypeError when no `indent` option is provided. This is strange since the call does not raise an exception when an indent value _is_ provided. Here's an example:\r\n\r\n```python\r\n    import json\r\n\r\n    stripe.Charge.create(...)\r\n\r\n    # Works!\r\n    customer_json = json.dumps(dict(customer), indent=2)\r\n\r\n    # Raises `TypeError`\r\n    customer_json = json.dumps(dict(customer))\r\n```\r\n\r\nI'm currently using Python 2.7.11, however, this may be an issue with the json library."}}