Linked Questions
29 questions linked to/from Convert string to JSON array
8
votes
4
answers
48k
views
Convert String to JSONArray (not JsonArray from gson) [duplicate]
how to properly convert this String to a jsonArray?
{
"myArray": [
{ "id": 1,
"att1": 14.2,
"att2": false },
{ "id": 2,
"att1": 13.2,
"att2": false },
...
-2
votes
3
answers
1k
views
Parse json string to json array? [duplicate]
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
Converting json string into an array in java [duplicate]
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
convert string to json array usin json simple library in java [duplicate]
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 ...
0
votes
2
answers
128
views
Get string from jsonArray java android Studio [duplicate]
{
"resource": [{
"devid": "862057040386432",
" time": "2021年11月02日 12:36:30",
"etype": "G_PING",
...
-8
votes
2
answers
145
views
How to convert a JSON string into a JSON arraylist? [duplicate]
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
Converting Invalid Json to Valid Json in Java [duplicate]
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, ...
39
votes
5
answers
138k
views
how to convert JSONArray to List of Object using camel-jackson
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
How to convert JSONArray to List with Gson?
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 ...
3
votes
5
answers
7k
views
Get size of json from MvcResult
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 ...
3
votes
3
answers
4k
views
Trying to get data from web-service in java
[
{
"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
How to get all keys from a JSON-Object as a String array in Java
I have a JSON Object which I created from a .json file which looks like the follownig:
{
"key1": {
"key2": "value2",
"key3": "value3",
}
}
...
0
votes
2
answers
15k
views
How do I return a List<Object> from a JSON like this?
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 ...
0
votes
3
answers
12k
views
How to convert C++ string array to json?
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
How to convert a string to JSONArray
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 ...