Quantcast
Channel: Active questions tagged rest - Stack Overflow
Viewing all articles
Browse latest Browse all 3630

Compress JSON payload in Django for both request from client and response from server (REST API).

$
0
0

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.


Viewing all articles
Browse latest Browse all 3630

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>