“Cannot access org.json.JSONStringer.Scope” on Android Studio 3.2.1
Sorry for this probably dumb question, i'm new to Java, Android Studio and everything related.
I'm trying to implement a simple weather forecast app for android on Android Studio 3.2.1 using the DarkSkyApi.
I managed to get the Data from DarkSky's server with HttpsURLConnection, StringBuilder
and BufferedReader. However, when i try to create a new JSONObject(.toString()), it just returns null. Further investigation led me to .toString()->JSONObject.java->JSONStringer, where Android Studio "Cannot access org.json.JSONStringer.Scope", what seems to be causing the failure of .toString().
I did add the JSON-Library, apart from the JSONStringer everything JSON-related looks like it would work. Imports do look fine to me aswell.
This is the malfunctioning code:
public class JSONStringer {
/** The output data, containing at most one top-level array or object. */
final StringBuilder out = new StringBuilder();
/**
* Lexical scoping elements within this stringer, necessary to insert the
* appropriate separator characters (ie. commas and colons) and to detect
* nesting errors.
*/
enum Scope {
/**
* An array with no elements requires no separators or newlines before
* it is closed.
*/
EMPTY_ARRAY,
/**
* A array with at least one value requires a comma and newline before
* the next element.
*/
NONEMPTY_ARRAY,
/**
* An object with no keys or values requires no separators or newlines
* before it is closed.
*/
EMPTY_OBJECT,
/**
* An object whose most recent element is a key. The next element must
* be a value.
*/
DANGLING_KEY,
/**
* An object with at least one name/value pair requires a comma and
* newline before the next element.
*/
NONEMPTY_OBJECT,
/**
* A special bracketless array needed by JSONStringer.join() and
* JSONObject.quote() only. Not used for JSON encoding.
*/
NULL,
}
Since i havn't changed anything in the JSONStringer.java i suspect the error maybe refers to a missing dependency or import or something, but i can't figure it out.
And this is where i get the Null-Object
if (responceCode == HttpURLConnection.HTTP_OK)
{
Log.i(TAG, "CONNECTION:::" + connection.getInputStream());
BufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream()));
Log.i(TAG, "url:::");
StringBuilder arg = new StringBuilder(1024);
String tmp="1";
while(tmp !=null) {
tmp = reader.readLine();
arg.append(tmp).append("n");
}
reader.close();
Log.i(TAG, "Data: " + arg.toString());
return new JSONObject(arg.toString());
}
else{
return null;
}
Log.i(TAG, "Data: " + arg.toString()); works fine and logs the data-string like it should.
Do you need something else to figure this out?
Thanks in advance
java
add a comment |
Sorry for this probably dumb question, i'm new to Java, Android Studio and everything related.
I'm trying to implement a simple weather forecast app for android on Android Studio 3.2.1 using the DarkSkyApi.
I managed to get the Data from DarkSky's server with HttpsURLConnection, StringBuilder
and BufferedReader. However, when i try to create a new JSONObject(.toString()), it just returns null. Further investigation led me to .toString()->JSONObject.java->JSONStringer, where Android Studio "Cannot access org.json.JSONStringer.Scope", what seems to be causing the failure of .toString().
I did add the JSON-Library, apart from the JSONStringer everything JSON-related looks like it would work. Imports do look fine to me aswell.
This is the malfunctioning code:
public class JSONStringer {
/** The output data, containing at most one top-level array or object. */
final StringBuilder out = new StringBuilder();
/**
* Lexical scoping elements within this stringer, necessary to insert the
* appropriate separator characters (ie. commas and colons) and to detect
* nesting errors.
*/
enum Scope {
/**
* An array with no elements requires no separators or newlines before
* it is closed.
*/
EMPTY_ARRAY,
/**
* A array with at least one value requires a comma and newline before
* the next element.
*/
NONEMPTY_ARRAY,
/**
* An object with no keys or values requires no separators or newlines
* before it is closed.
*/
EMPTY_OBJECT,
/**
* An object whose most recent element is a key. The next element must
* be a value.
*/
DANGLING_KEY,
/**
* An object with at least one name/value pair requires a comma and
* newline before the next element.
*/
NONEMPTY_OBJECT,
/**
* A special bracketless array needed by JSONStringer.join() and
* JSONObject.quote() only. Not used for JSON encoding.
*/
NULL,
}
Since i havn't changed anything in the JSONStringer.java i suspect the error maybe refers to a missing dependency or import or something, but i can't figure it out.
And this is where i get the Null-Object
if (responceCode == HttpURLConnection.HTTP_OK)
{
Log.i(TAG, "CONNECTION:::" + connection.getInputStream());
BufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream()));
Log.i(TAG, "url:::");
StringBuilder arg = new StringBuilder(1024);
String tmp="1";
while(tmp !=null) {
tmp = reader.readLine();
arg.append(tmp).append("n");
}
reader.close();
Log.i(TAG, "Data: " + arg.toString());
return new JSONObject(arg.toString());
}
else{
return null;
}
Log.i(TAG, "Data: " + arg.toString()); works fine and logs the data-string like it should.
Do you need something else to figure this out?
Thanks in advance
java
I worked around the JSON lib by manualy extracting the data with String.split() Not perfect but i got what i wanted
– Nils Krautkremer
Nov 21 '18 at 23:06
add a comment |
Sorry for this probably dumb question, i'm new to Java, Android Studio and everything related.
I'm trying to implement a simple weather forecast app for android on Android Studio 3.2.1 using the DarkSkyApi.
I managed to get the Data from DarkSky's server with HttpsURLConnection, StringBuilder
and BufferedReader. However, when i try to create a new JSONObject(.toString()), it just returns null. Further investigation led me to .toString()->JSONObject.java->JSONStringer, where Android Studio "Cannot access org.json.JSONStringer.Scope", what seems to be causing the failure of .toString().
I did add the JSON-Library, apart from the JSONStringer everything JSON-related looks like it would work. Imports do look fine to me aswell.
This is the malfunctioning code:
public class JSONStringer {
/** The output data, containing at most one top-level array or object. */
final StringBuilder out = new StringBuilder();
/**
* Lexical scoping elements within this stringer, necessary to insert the
* appropriate separator characters (ie. commas and colons) and to detect
* nesting errors.
*/
enum Scope {
/**
* An array with no elements requires no separators or newlines before
* it is closed.
*/
EMPTY_ARRAY,
/**
* A array with at least one value requires a comma and newline before
* the next element.
*/
NONEMPTY_ARRAY,
/**
* An object with no keys or values requires no separators or newlines
* before it is closed.
*/
EMPTY_OBJECT,
/**
* An object whose most recent element is a key. The next element must
* be a value.
*/
DANGLING_KEY,
/**
* An object with at least one name/value pair requires a comma and
* newline before the next element.
*/
NONEMPTY_OBJECT,
/**
* A special bracketless array needed by JSONStringer.join() and
* JSONObject.quote() only. Not used for JSON encoding.
*/
NULL,
}
Since i havn't changed anything in the JSONStringer.java i suspect the error maybe refers to a missing dependency or import or something, but i can't figure it out.
And this is where i get the Null-Object
if (responceCode == HttpURLConnection.HTTP_OK)
{
Log.i(TAG, "CONNECTION:::" + connection.getInputStream());
BufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream()));
Log.i(TAG, "url:::");
StringBuilder arg = new StringBuilder(1024);
String tmp="1";
while(tmp !=null) {
tmp = reader.readLine();
arg.append(tmp).append("n");
}
reader.close();
Log.i(TAG, "Data: " + arg.toString());
return new JSONObject(arg.toString());
}
else{
return null;
}
Log.i(TAG, "Data: " + arg.toString()); works fine and logs the data-string like it should.
Do you need something else to figure this out?
Thanks in advance
java
Sorry for this probably dumb question, i'm new to Java, Android Studio and everything related.
I'm trying to implement a simple weather forecast app for android on Android Studio 3.2.1 using the DarkSkyApi.
I managed to get the Data from DarkSky's server with HttpsURLConnection, StringBuilder
and BufferedReader. However, when i try to create a new JSONObject(.toString()), it just returns null. Further investigation led me to .toString()->JSONObject.java->JSONStringer, where Android Studio "Cannot access org.json.JSONStringer.Scope", what seems to be causing the failure of .toString().
I did add the JSON-Library, apart from the JSONStringer everything JSON-related looks like it would work. Imports do look fine to me aswell.
This is the malfunctioning code:
public class JSONStringer {
/** The output data, containing at most one top-level array or object. */
final StringBuilder out = new StringBuilder();
/**
* Lexical scoping elements within this stringer, necessary to insert the
* appropriate separator characters (ie. commas and colons) and to detect
* nesting errors.
*/
enum Scope {
/**
* An array with no elements requires no separators or newlines before
* it is closed.
*/
EMPTY_ARRAY,
/**
* A array with at least one value requires a comma and newline before
* the next element.
*/
NONEMPTY_ARRAY,
/**
* An object with no keys or values requires no separators or newlines
* before it is closed.
*/
EMPTY_OBJECT,
/**
* An object whose most recent element is a key. The next element must
* be a value.
*/
DANGLING_KEY,
/**
* An object with at least one name/value pair requires a comma and
* newline before the next element.
*/
NONEMPTY_OBJECT,
/**
* A special bracketless array needed by JSONStringer.join() and
* JSONObject.quote() only. Not used for JSON encoding.
*/
NULL,
}
Since i havn't changed anything in the JSONStringer.java i suspect the error maybe refers to a missing dependency or import or something, but i can't figure it out.
And this is where i get the Null-Object
if (responceCode == HttpURLConnection.HTTP_OK)
{
Log.i(TAG, "CONNECTION:::" + connection.getInputStream());
BufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream()));
Log.i(TAG, "url:::");
StringBuilder arg = new StringBuilder(1024);
String tmp="1";
while(tmp !=null) {
tmp = reader.readLine();
arg.append(tmp).append("n");
}
reader.close();
Log.i(TAG, "Data: " + arg.toString());
return new JSONObject(arg.toString());
}
else{
return null;
}
Log.i(TAG, "Data: " + arg.toString()); works fine and logs the data-string like it should.
Do you need something else to figure this out?
Thanks in advance
java
java
asked Nov 21 '18 at 17:27
Nils KrautkremerNils Krautkremer
1817
1817
I worked around the JSON lib by manualy extracting the data with String.split() Not perfect but i got what i wanted
– Nils Krautkremer
Nov 21 '18 at 23:06
add a comment |
I worked around the JSON lib by manualy extracting the data with String.split() Not perfect but i got what i wanted
– Nils Krautkremer
Nov 21 '18 at 23:06
I worked around the JSON lib by manualy extracting the data with String.split() Not perfect but i got what i wanted
– Nils Krautkremer
Nov 21 '18 at 23:06
I worked around the JSON lib by manualy extracting the data with String.split() Not perfect but i got what i wanted
– Nils Krautkremer
Nov 21 '18 at 23:06
add a comment |
1 Answer
1
active
oldest
votes
Try this:
JsonObject output = Json.createObjectBuilder()
.add("data", arg.toString())
.build();
return output;
Thank you for your help! When i try your code in Android-Studio, i get "cannot resolve symbol 'Json'". Do i need to add something in dependencies or imports? These are my current Imports: import com.google.gson.JsonObject; import org.json.JSONArray; import org.json.JSONObject;
– Nils Krautkremer
Nov 21 '18 at 17:57
Well, that wasn't Android specific, so it might be no the best option. Make sure you have a valid JSON-encoded string inside arg.toString() when you do it your way. Refer to this documentation: developer.android.com/reference/org/json/…
– Denis Kovzelyuk
Nov 21 '18 at 18:05
arg.toString() gets me this: {"latitude":37.8267,"longitude":-122.4233,"timezone":"America/Los_Angeles","currently":{"time":1542818024,"summary":"Heavy Rain","icon":"rain","nearestStormDistance":0,"precipIntensity":0.3379,"precipIntensityError":0.0694,"precipProbability":1,"precipType":"rain","temperature":58.83,"apparentTemperature":58.83,"dewPoint":52.72,"humidity":0.8,"pressure":1015.36,"windSpeed":7.26,"windGust":17.67,"windBearing":149,"cloudCover": ...and so on. Looks alright to me? Do you have any idea why i can't compile the JSONStringer.java? Why can't it access the enum Scope?
– Nils Krautkremer
Nov 21 '18 at 18:15
Do you have org.json.JSONObject imported?
– Denis Kovzelyuk
Nov 21 '18 at 18:28
yes, i do! Do i need to set any specific dependencis or repositorys? I don't really understand what either of them is for.
– Nils Krautkremer
Nov 21 '18 at 18:43
|
show 2 more comments
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53417602%2fcannot-access-org-json-jsonstringer-scope-on-android-studio-3-2-1%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Try this:
JsonObject output = Json.createObjectBuilder()
.add("data", arg.toString())
.build();
return output;
Thank you for your help! When i try your code in Android-Studio, i get "cannot resolve symbol 'Json'". Do i need to add something in dependencies or imports? These are my current Imports: import com.google.gson.JsonObject; import org.json.JSONArray; import org.json.JSONObject;
– Nils Krautkremer
Nov 21 '18 at 17:57
Well, that wasn't Android specific, so it might be no the best option. Make sure you have a valid JSON-encoded string inside arg.toString() when you do it your way. Refer to this documentation: developer.android.com/reference/org/json/…
– Denis Kovzelyuk
Nov 21 '18 at 18:05
arg.toString() gets me this: {"latitude":37.8267,"longitude":-122.4233,"timezone":"America/Los_Angeles","currently":{"time":1542818024,"summary":"Heavy Rain","icon":"rain","nearestStormDistance":0,"precipIntensity":0.3379,"precipIntensityError":0.0694,"precipProbability":1,"precipType":"rain","temperature":58.83,"apparentTemperature":58.83,"dewPoint":52.72,"humidity":0.8,"pressure":1015.36,"windSpeed":7.26,"windGust":17.67,"windBearing":149,"cloudCover": ...and so on. Looks alright to me? Do you have any idea why i can't compile the JSONStringer.java? Why can't it access the enum Scope?
– Nils Krautkremer
Nov 21 '18 at 18:15
Do you have org.json.JSONObject imported?
– Denis Kovzelyuk
Nov 21 '18 at 18:28
yes, i do! Do i need to set any specific dependencis or repositorys? I don't really understand what either of them is for.
– Nils Krautkremer
Nov 21 '18 at 18:43
|
show 2 more comments
Try this:
JsonObject output = Json.createObjectBuilder()
.add("data", arg.toString())
.build();
return output;
Thank you for your help! When i try your code in Android-Studio, i get "cannot resolve symbol 'Json'". Do i need to add something in dependencies or imports? These are my current Imports: import com.google.gson.JsonObject; import org.json.JSONArray; import org.json.JSONObject;
– Nils Krautkremer
Nov 21 '18 at 17:57
Well, that wasn't Android specific, so it might be no the best option. Make sure you have a valid JSON-encoded string inside arg.toString() when you do it your way. Refer to this documentation: developer.android.com/reference/org/json/…
– Denis Kovzelyuk
Nov 21 '18 at 18:05
arg.toString() gets me this: {"latitude":37.8267,"longitude":-122.4233,"timezone":"America/Los_Angeles","currently":{"time":1542818024,"summary":"Heavy Rain","icon":"rain","nearestStormDistance":0,"precipIntensity":0.3379,"precipIntensityError":0.0694,"precipProbability":1,"precipType":"rain","temperature":58.83,"apparentTemperature":58.83,"dewPoint":52.72,"humidity":0.8,"pressure":1015.36,"windSpeed":7.26,"windGust":17.67,"windBearing":149,"cloudCover": ...and so on. Looks alright to me? Do you have any idea why i can't compile the JSONStringer.java? Why can't it access the enum Scope?
– Nils Krautkremer
Nov 21 '18 at 18:15
Do you have org.json.JSONObject imported?
– Denis Kovzelyuk
Nov 21 '18 at 18:28
yes, i do! Do i need to set any specific dependencis or repositorys? I don't really understand what either of them is for.
– Nils Krautkremer
Nov 21 '18 at 18:43
|
show 2 more comments
Try this:
JsonObject output = Json.createObjectBuilder()
.add("data", arg.toString())
.build();
return output;
Try this:
JsonObject output = Json.createObjectBuilder()
.add("data", arg.toString())
.build();
return output;
answered Nov 21 '18 at 17:39
Denis KovzelyukDenis Kovzelyuk
716
716
Thank you for your help! When i try your code in Android-Studio, i get "cannot resolve symbol 'Json'". Do i need to add something in dependencies or imports? These are my current Imports: import com.google.gson.JsonObject; import org.json.JSONArray; import org.json.JSONObject;
– Nils Krautkremer
Nov 21 '18 at 17:57
Well, that wasn't Android specific, so it might be no the best option. Make sure you have a valid JSON-encoded string inside arg.toString() when you do it your way. Refer to this documentation: developer.android.com/reference/org/json/…
– Denis Kovzelyuk
Nov 21 '18 at 18:05
arg.toString() gets me this: {"latitude":37.8267,"longitude":-122.4233,"timezone":"America/Los_Angeles","currently":{"time":1542818024,"summary":"Heavy Rain","icon":"rain","nearestStormDistance":0,"precipIntensity":0.3379,"precipIntensityError":0.0694,"precipProbability":1,"precipType":"rain","temperature":58.83,"apparentTemperature":58.83,"dewPoint":52.72,"humidity":0.8,"pressure":1015.36,"windSpeed":7.26,"windGust":17.67,"windBearing":149,"cloudCover": ...and so on. Looks alright to me? Do you have any idea why i can't compile the JSONStringer.java? Why can't it access the enum Scope?
– Nils Krautkremer
Nov 21 '18 at 18:15
Do you have org.json.JSONObject imported?
– Denis Kovzelyuk
Nov 21 '18 at 18:28
yes, i do! Do i need to set any specific dependencis or repositorys? I don't really understand what either of them is for.
– Nils Krautkremer
Nov 21 '18 at 18:43
|
show 2 more comments
Thank you for your help! When i try your code in Android-Studio, i get "cannot resolve symbol 'Json'". Do i need to add something in dependencies or imports? These are my current Imports: import com.google.gson.JsonObject; import org.json.JSONArray; import org.json.JSONObject;
– Nils Krautkremer
Nov 21 '18 at 17:57
Well, that wasn't Android specific, so it might be no the best option. Make sure you have a valid JSON-encoded string inside arg.toString() when you do it your way. Refer to this documentation: developer.android.com/reference/org/json/…
– Denis Kovzelyuk
Nov 21 '18 at 18:05
arg.toString() gets me this: {"latitude":37.8267,"longitude":-122.4233,"timezone":"America/Los_Angeles","currently":{"time":1542818024,"summary":"Heavy Rain","icon":"rain","nearestStormDistance":0,"precipIntensity":0.3379,"precipIntensityError":0.0694,"precipProbability":1,"precipType":"rain","temperature":58.83,"apparentTemperature":58.83,"dewPoint":52.72,"humidity":0.8,"pressure":1015.36,"windSpeed":7.26,"windGust":17.67,"windBearing":149,"cloudCover": ...and so on. Looks alright to me? Do you have any idea why i can't compile the JSONStringer.java? Why can't it access the enum Scope?
– Nils Krautkremer
Nov 21 '18 at 18:15
Do you have org.json.JSONObject imported?
– Denis Kovzelyuk
Nov 21 '18 at 18:28
yes, i do! Do i need to set any specific dependencis or repositorys? I don't really understand what either of them is for.
– Nils Krautkremer
Nov 21 '18 at 18:43
Thank you for your help! When i try your code in Android-Studio, i get "cannot resolve symbol 'Json'". Do i need to add something in dependencies or imports? These are my current Imports: import com.google.gson.JsonObject; import org.json.JSONArray; import org.json.JSONObject;
– Nils Krautkremer
Nov 21 '18 at 17:57
Thank you for your help! When i try your code in Android-Studio, i get "cannot resolve symbol 'Json'". Do i need to add something in dependencies or imports? These are my current Imports: import com.google.gson.JsonObject; import org.json.JSONArray; import org.json.JSONObject;
– Nils Krautkremer
Nov 21 '18 at 17:57
Well, that wasn't Android specific, so it might be no the best option. Make sure you have a valid JSON-encoded string inside arg.toString() when you do it your way. Refer to this documentation: developer.android.com/reference/org/json/…
– Denis Kovzelyuk
Nov 21 '18 at 18:05
Well, that wasn't Android specific, so it might be no the best option. Make sure you have a valid JSON-encoded string inside arg.toString() when you do it your way. Refer to this documentation: developer.android.com/reference/org/json/…
– Denis Kovzelyuk
Nov 21 '18 at 18:05
arg.toString() gets me this: {"latitude":37.8267,"longitude":-122.4233,"timezone":"America/Los_Angeles","currently":{"time":1542818024,"summary":"Heavy Rain","icon":"rain","nearestStormDistance":0,"precipIntensity":0.3379,"precipIntensityError":0.0694,"precipProbability":1,"precipType":"rain","temperature":58.83,"apparentTemperature":58.83,"dewPoint":52.72,"humidity":0.8,"pressure":1015.36,"windSpeed":7.26,"windGust":17.67,"windBearing":149,"cloudCover": ...and so on. Looks alright to me? Do you have any idea why i can't compile the JSONStringer.java? Why can't it access the enum Scope?
– Nils Krautkremer
Nov 21 '18 at 18:15
arg.toString() gets me this: {"latitude":37.8267,"longitude":-122.4233,"timezone":"America/Los_Angeles","currently":{"time":1542818024,"summary":"Heavy Rain","icon":"rain","nearestStormDistance":0,"precipIntensity":0.3379,"precipIntensityError":0.0694,"precipProbability":1,"precipType":"rain","temperature":58.83,"apparentTemperature":58.83,"dewPoint":52.72,"humidity":0.8,"pressure":1015.36,"windSpeed":7.26,"windGust":17.67,"windBearing":149,"cloudCover": ...and so on. Looks alright to me? Do you have any idea why i can't compile the JSONStringer.java? Why can't it access the enum Scope?
– Nils Krautkremer
Nov 21 '18 at 18:15
Do you have org.json.JSONObject imported?
– Denis Kovzelyuk
Nov 21 '18 at 18:28
Do you have org.json.JSONObject imported?
– Denis Kovzelyuk
Nov 21 '18 at 18:28
yes, i do! Do i need to set any specific dependencis or repositorys? I don't really understand what either of them is for.
– Nils Krautkremer
Nov 21 '18 at 18:43
yes, i do! Do i need to set any specific dependencis or repositorys? I don't really understand what either of them is for.
– Nils Krautkremer
Nov 21 '18 at 18:43
|
show 2 more comments
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53417602%2fcannot-access-org-json-jsonstringer-scope-on-android-studio-3-2-1%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
I worked around the JSON lib by manualy extracting the data with String.split() Not perfect but i got what i wanted
– Nils Krautkremer
Nov 21 '18 at 23:06