What a great resource Stoplight seem to be @Rene: Thanks! I was not aware of it - it seems to be a great supplement (for some a replacement?) for the core docs
I have now tried to call the api from a browser, and indeed there is no truncating of the JSON string there.
Stoplight is a supplement to the API docs. We do link it from the Developer portal but we could do a better job at sharing the resource!
Perhaps you could submit a PR to the Python library to fix the issue, or raise an issue on the repository page.
A second option would be to use the OpenAPI spec of DHIS2 to generate a python library directly, as the repository does seem to be out of date for a few years