GetJSON
GetJSON copied to clipboard
GetJson is the simplest HTTP library to Receive JSON Data from REST Service.
the application closes if time field is invalid or empty, or broken url jsonObject2.get("time").getAsString();
Instead of `flag = 1` you can do `return true`. also `flag = 0` becomes `return false;` https://github.com/100rabhkr/GetJSON/blob/master/getjson/src/main/java/com/dezlum/codelabs/getjson/GetJson.java#L107
No reason to instantiate an object. Add the static modifier https://github.com/100rabhkr/GetJSON/blob/master/getjson/src/main/java/com/dezlum/codelabs/getjson/GetJson.java#L83