I am wondering if there's a way to compress the JSON payload I have to send every time with many repetitive field names. While this question is only about compressing the response, I would like to know how to compress the JSON payload from client (may be a mobile app) as well. Also, I want to know how do I convert the compressed JSON file back to its original structure both on client and server side.
A detailed answer with the steps will be appreciated.
I am using djangorestframework==2.4.4
with Django==1.7.7
for the APIs.