i am sending large datasets in JSON format from my android device to my server (using PHP). I want to keep bandwidth costs down. I am wondering: should I gzip compress the JSON data server side before sending the data? is there a javascript gzip uncompression library in php side and what i do in android side?
You can compress your JSON output in this way from PHP server.
echo gzencode(json_encode($data));
And for android side you can use "gzip decoder"