Prepare JSON data from sentiment analysis to perform Logistic Regression
Reputation barrier hence mentioning this as an answer, instead of a comment. This article should lead you the right way, as author has used Twitch API and Python to create his dataset. You shall get a feel of entire data flow.

EDIT: This is a nice tutorial on understanding (basically read/write) JSON files using Python.