Linked Questions

13 questions linked to/from Convert JSONArray to String Array
0 votes
2 answers
828 views

I am parsing the json array and fetching the result. I want to store the json array values to string array. Here is my code: public static void main(String[] args) throws ...
0 votes
1 answer
378 views

As this question has been closed before actual answer for this specific problem has been found, it is here. In java, I am using the simplejson library to handle json. My json have this structure (...
-1 votes
2 answers
173 views

I want to extract authors from this JSON, I successfully get the JSONArray but I don't know how to convert it into String[], I have to pass this String[] to a method. Please try to keep the solution ...
Arya's user avatar
  • 53
-1 votes
1 answer
124 views

I have a result from PHP as JSONObject {"Requests":[{"fromid":"theDude"},{"fromid":"[email protected]"}],"success":1} I want to get the from ids intro String array in Android?. I have seen ...
coderVishal's user avatar
  • 9,229
1 vote
6 answers
6k views

Probably a stupid question. I'm getting a JSONArray in the form of [{'route':'route1'}, {'route':'route2'}, {'route':'route3'}] I want to get it into a String array of ["route1", "route2", "route3"...
Thahzan's user avatar
  • 1,005
-9 votes
1 answer
3k views

I have String like [ { "Title":"name", "Value":"Sam" }, { "Title":"mobile", "Value":"(606) 87-0238" } ] want to convert it into List<JSONobj> list of ...
sang's user avatar
  • 11
1 vote
2 answers
693 views

What is the best way from the given JSON to generate List of SimpleTestClass type where there's a new SimpleTestClass object for the values in the recipients array in the JSON with code set as well. ...
0 votes
2 answers
232 views

How to convert a JsonArrayString to List<String> or String[]? I tried to use Gson to covert it, but I failed. Maybe I overlooked some existing methods which can do this? Any other better way to ...
gann yee's user avatar
  • 141
1 vote
1 answer
140 views

This is not a duplicate My JSON is not in an JSONArray, My JSON is all objects. However I have passed the objects into an JSONArray as it was the only way I could figure out how to get each objects ...
0 votes
1 answer
133 views

My JSON response is like this: ["item1","item2",...] Now, I want to add each of the array items into my spinner: @Override public void onResponse(Call<String> call, Response&...
user avatar
1 vote
3 answers
97 views

[ { "0": "1", "1": "ANIMALS", "2": "7a415-lion.png", "id": "1", "category_name": "ANIMALS", "category_image": "http://dev1.sbsgroupsolutions.co.in/...
-1 votes
1 answer
66 views

Here is my string getting from json response: daysOfDelivery = getIntent().getStringExtra("DaysOfDelivery"); in daysOfDelivery i have a String "[1,1,1,1,1,1,1]" using this string i want to show days ...
Raju raj's user avatar
-5 votes
2 answers
62 views

I have this string from json, but i don`t know how to get values in quotes [ "black-chest-close.png", "diamond-chest-close.png", "gold-chest-close.png", "logo.png", "logo1.png", "...