Encode the given object, o, and yield each string representation as available. For example:
iterencode(o)
for chunk in json.JSONEncoder().iterencode(bigobject): mysocket.write(chunk)