Change format of server responses from JSON to query string