Turning Python Object into a JSON string
<p>I have been working on this bot that takes the twitter api and brings it into my database. Before I was grabbing 1 tweet at a time which wasn't efficient considering I was using 1 request out of the limit they had. So instead I decided to grab 150 results. I get these results back:</p>

<p><code>[Status(ID=780587171757625344, ScreenName=Ampsx, Created=Tue Sep 27 01:57:39 +0000 2016, Text='You know who you are #memes').</code></p>

<p>I get about 150 of these. Is there a library where I can turn this into JSON?</p>

<pre><code>import json
jsondata = json.dumps(TwitterStatusObject.__dict__)
</code></pre>

python json