I am not sure if this is efficient, but this is one of the possible ways:
Read json from url use url.openStream()
and read contents into a string.
construct a JSON object with this string (more at json.org)
JSONObject(java.lang.String source)
Construct a JSONObject from a source JSON text string.