I want to download the JSON data from this sample API call into a file.
I tried using wget, like so:
wget -O ~/ks/json.txt "http://api.stackexchange.com/2.2/search/advanced?pagesize=5&fromdate=1420761600&todate=1420934400&order=desc&sort=activity&accepted=True&answers=1&tagged=hadoop&site=stackoverflow&filter=withbody"
The output I get is not in readable format. The same command works for other web services. Is the Stack Exchange API restricting something or am I doing it wrong?