Q: I have issue with retrieving the data received by API call which is GZIP format I am having issue with extracting the data from the response received by api call
http://open.pkfare.com/apitest/shopping?param="+json_encoded_string

where json_encoded_string is base64 encrypted json data, which is done as per the documentation in http://open.pkfare.com/documents/show
As per the documentation the response received will be in gzip format, 
I'm facing issue with retrieving this data to json format. I'd gone through many blogs for the solution but i didn't got the solution and finally end up here
I'm calling this api using ajax call
var fbURL = "http://open.pkfare.com/apitest/shoppingparam=" + json_encoded_string;

$.ajax({
    url: fbURL,
    type: 'GET',
    success: function (resp) {

        //---i need code for reading the received gzip data here---

    },
    error: function (e) {
        alert('Error: ' + e);
    }
});


A: As you are using AJAX post to get this, I will recomond to use server-side language to do it. I think this is the best and only way for it to actually work. 
Post your AJAX request to a server side language then there call the api and do your other coding to parse the data.
