Marin Capranov wrote: I have encountered a problem that I cannot solve for a couple of days. The thing is I have created a parser class that has a method called parseJSON
Marin Capranov wrote:the error message is org.json.JSONException: Value https of type java.lang.String cannot be converted to JSONObject
Honestly, I can't see why?
Marin Capranov wrote:I hope it will clarify a bit
Marin Capranov wrote:The main functionality of the code is inside a try-catch block because the new JSONObject throws JSONException error. I tried many ways to solve however nothing changed yet. Hope that you can see something I can't.
org.json.JSONException: Value https of type java.lang.String cannot be converted to JSONObject
Marin Capranov wrote:I believe that's the problem, too. But what you suggest to do? I can't see any other ways of parsing that URL. After all, I got that from the official Google website. I don't want to pass an entire JSON file because it is huge. That's why I got that URL.
Marin Capranov wrote:... Places API but they provide this URL that you can use in order to get full JSON... you get a massive JSON file.
Marin Capranov wrote:But if is that how do I extract that json object out of the https link?