I have a big JSON and i need to send that in batches of 1MB. How can i do that in python??. Any help is appreciated.

Here's the code.

Value is the whole big JSON.

```
for key, value in attributeJs.iteritems() :
                data = value
                headers = {'Content-Type' : 'application/json'}
                try:
                        requests.packages.urllib3.disable_warnings()
                        r = requests.post(url=URL_ATTRIBUTE, headers=headers, verify=False, data=data, timeout=(15,20))

```