This link is not working, anyway I got the problem and providing the steps
1.Read the URL and get the JSON string something like
public static JSONObject readJsonFromUrl(String url) throws IOException, JSONException {
InputStream is = new URL(url).openStream();
try {
BufferedReader rd = new BufferedReader(new InputStreamReader(is, Charset.forName("UTF-8")));
String jsonText = readAll(rd);
JSONObject json = new JSONObject(jsonText);
return json;
} finally {
is.close();
}
}
2.Decode the JSON string something like
JSONObject json = readJsonFromUrl("<Your URL>");
System.out.println(json.get("opr1"));
System.out.println(json.get("opr2"));
System.out.println(json.get("operator"));
3.Rest is simple and leave it to you how you would solve it, just need to use opr1, opr2 and operator :)