Java Http request on api.stackexchange with json response
- by taoder
I'm trying to use the api-stackexchange with java but when I do the request and try to parse the response with a json parser I have an error.
public ArrayList<Question> readJsonStream(InputStream in) throws IOException {
JsonReader reader = new JsonReader(new InputStreamReader(in, "UTF-8"));
reader.setLenient(true);
try {
…