Linked Questions

29 questions linked to/from Convert string to JSON array
8 votes
4 answers
48k views

how to properly convert this String to a jsonArray? { "myArray": [ { "id": 1, "att1": 14.2, "att2": false }, { "id": 2, "att1": 13.2, "att2": false }, ...
DieselPower's user avatar
-2 votes
3 answers
1k views

i need help to convert json string to json array as i given below {"level":[{"id":"1","name":"first","time":"00:02:00"},{"id":"2","name":"second","time":"00:03:00"},{"id":"3","name":"math","time":"00:...
0 votes
1 answer
239 views

I am not much familiar with java . But I know in php we can do with json_decode function . Is there any particular function in java to decode the below string to an array? [ { "type" : "panaroma", ...
Anish's user avatar
  • 5,458
0 votes
1 answer
148 views

I'm looking for a way to convert this String [{"season":"w15","club":"belle-plagne"},{"season":"w15","club":"belle-plagne"},{"season":"w15","club":"belle-plagne"}] that looks like a json array to a ...
mayes's user avatar
  • 5
0 votes
2 answers
128 views

{ "resource": [{ "devid": "862057040386432", " time": "2021年11月02日 12:36:30", "etype": "G_PING", ...
Gn Deepan's user avatar
-8 votes
2 answers
145 views

I have a String and i want to show it in list so i have to convert it in Array list How can i do this? I have tried these things String Result =response.body().getGetFlightAvailibilityResponse()....
0 votes
0 answers
31 views

I am getting the below records from a backend system and not sure how many such records I might be receiving. As you can see the data I receive is not in a valid json format. [489078:{cancelled:1, ...
Ruby's user avatar
  • 378
39 votes
5 answers
138k views

Am having the String of json array as follow {"Compemployes":[ { "id":1001, "name":"jhon" }, { "id":1002, "name":"jhon" } ]} i want ...
36 votes
1 answer
42k views

In my Android project I'm trying to convert a received JSONArray to a List. With the help of this SO answer I got a bit further. I now have the following code: Gson gson = new Gson(); JSONArray ...
kramer65's user avatar
  • 54.6k
3 votes
5 answers
7k views

I'm testing an API and get all data from the DB. I save the response as MvcResult result = mockMvc.perform(..some code..).andReturn(); I get a json as response. I want to get the length of json ...
annswerg's user avatar
  • 279
3 votes
3 answers
4k views

[ { "title": "ginger", "id": "38", "product_id": "17", "product_logo": "imagePath/Desert_0.jpg?itok=Uvm6nxpY", "product_logo_1": "imagePath/Desert_0.jpg?...
0 votes
3 answers
9k views

I have a JSON Object which I created from a .json file which looks like the follownig: { "key1": { "key2": "value2", "key3": "value3", } } ...
schande's user avatar
  • 676
0 votes
2 answers
15k views

I'm making a webapp using Giant Bomb API. I'm stuck because I need to get a list of search results from GET request (using Unirest) and then convieniently convert it to a List of Objects called ...
VapeKop's user avatar
  • 389
0 votes
3 answers
12k views

I have started implementing Microsoft Cognitive Services using C++. I have a C++ String array(faceIds array) string faceIds[] ={ "29e874a8-a08f-491f-84e8-eac263d51fe1", "...
3 votes
2 answers
4k views

I am hitting an api and getting a string response. The response is something like this "["VU","Vanuatu",["Pacific/Efate","(GMT+11:00) Efate"],"VN","Vietnam",["Asia/Saigon","(GMT+07:00) Hanoi"]]" And ...

15 30 50 per page
1
2