160 questions
0
votes
1
answer
83
views
Parse data from Google Directions API using GSON
My api response is this -
{
"geocoded_waypoints": [],
"routes": [
{
"bounds": {},
"copyrights": "Map data ©2024",
"legs": [
{
"distance&...
0
votes
1
answer
73
views
How can I access JSON objects in flutter?
Below is my code where I need to access the 'code' json object from response body and show the alert but my code is failing and throwing Invalid response(executing only the else part). The execution ...
0
votes
1
answer
29
views
How to get the value of a specific element from JSON using PostgreSQl
I have the following JSON object in PostgreSQL. I am trying to write a query to get me the details of "Elements"
{
"ItineraryId": 0,
"ForceSingleSearchForFlights": ...
1
vote
1
answer
98
views
convert jsonString contains special characters to jsonObject
I have jsonString which contains special characters.I want to remove these special characters to obtain proper jsonString then jsonObject.
My code is :
String text="\"\"\\\"\\\\\\\...
0
votes
1
answer
115
views
How can I get the value on a position from a JSON Response on Android Studio?
I want to get the value of a specific object from this response, but I still don't understand at all the rules of the hierarchy.
The values I want are :
"F0092_AN8": 258523
and
"...
0
votes
1
answer
83
views
How to access and loop though nested Json in Groovy
I am trying to access and loop a nested Json in Groovy for testing purpose, the file saved in a file
below is how the structure is
{
"dunsNumber": 0,
"branches": 25,
"...
1
vote
1
answer
347
views
How to iterate through JSON Array or JSON object in JSP using JSTL
I'm having this json:
{
"maxAgentAmt": 66,
"minComAmt": 3,
"maxTxn": 7,
"maxAmt": 99,
"minAmt": 3,
"maxComAmt": 99
}
and I also have to get ...
-1
votes
1
answer
994
views
is "JSON_OBJECT()" function supported in H2 DB?
I am trying to query a H2 table using JSON_OBJECT. but the error message says, there is no function like JSON_OBJECT.
I am trying something like:
SELECT JSON_OBJECT(LABEL , DETAIL_DATA )
FROM DB....
0
votes
1
answer
706
views
Why does my kotlin android app crash after receiving response on JsonArrayRequest? Is there any error in my code?
I get no errors in building the app but when the app finally launches, it crashes right after response is gotten from the
JsonArrayRequest() function.
these are my logcats:
logcat 1
logcat 2
FATAL ...
0
votes
1
answer
332
views
my Android Studio weather app not working on phone, but works in Android Studio emulator
When i start app in emulator, its work properly, but when i install it on phone(I tested it on 2 of my friends phones), its not working like it should
I think the problem is with permissions stuff, ...
0
votes
1
answer
231
views
Json string to Object mapping with dynamic values
I am consuming Thirdparty jsonString, I am trying to parse the json but sometimes JSON object "RadarReports" is an list and sometimes it object.
{"RadarReports": {
"...
1
vote
2
answers
158
views
How to destructure desired information from NASA IMAGES API using React
I am trying to build a react gallery using NASA Images API. I have been able to get the images and nasa_id from the API, but I am having trouble destructuring the title and description. I haven't ...
0
votes
1
answer
673
views
How to preserve string ("/") while sending api request as part of JSONObject
I am trying to send below Jsonobject as request parameter to rest API.
{ "date": "2022-01-01", "value": [ "TST/USED" ] }
Value field contains the list of ...
0
votes
1
answer
42
views
Trying to explain a a java for loop which requests JSON objects and requests for Queues
I'm trying to do a written report on some code and I found one on Youtube. However, I don't understand how some of this loop works. I understand that it goes through every item in the list and fetches ...
0
votes
0
answers
44
views
Method with JsonObjectRequest Failing without any Errors
**FIXED: ** Android Studio does not seem to sync new permissions from AndroidManifest when app is recompiled and run. I updated the manifest with:
<uses-permission android:name="android....
0
votes
1
answer
1k
views
What is the best way of getting index from huge JSON Array of objects that matches with array of JSON objects
I want to know the best way of getting indexes from huge (array length is nearly 150 000) JSON Array of JSON objects that matches with array of JSON objects.
Currently I'm using for loop to do this ...
0
votes
1
answer
53
views
Getting NULL when reading JSON Object in PHP side
I'm trying to send a JSON object to PHP through ajax. But am getting null value on PHP side.
Jquery code
t_data = [{"name":"John", "age":30, "car":null},{"...
1
vote
0
answers
123
views
jsonObjectRequest and StringRequest Response Listener are not working after many tries
I took the example code in the documentation, the one from youtube videos. Nothing happens at the new Response. Listener and the onResponse function are not even called. Can't debug it even if I put a ...
0
votes
1
answer
3k
views
Object mapper removing empty and null values when converting object to string Java
In response to api call, i'm sending Json Class Object as response.
I need response like this without empty objects being removed.
{
"links": {
"products": [],
"...
0
votes
1
answer
58
views
Http PUT volley. Parameter in the middle of the url
I am using Volley for my HTTP requests and I have an HTTP put URL which looks like below.
http://mycompany.com/favorite/{roomNumber}/count. I am using a JSON object request. How do I make the API work ...
0
votes
0
answers
251
views
How to access Volley response in another Class or Scope?
Hi there I am struggling to understand how exactly Volley request works. I have done similar things in NodeJs and the process seemed more intuitive.
String url = "http://my-json-feed";
...
1
vote
0
answers
132
views
Synchronize not working in onResponse for JsonObject
I have a problem with synchronization I used singleton for requestQueue and I did use call back also and for finishedprocess() which is a method of CurrencyAsyncResponse interface.
getCurrencies() ...
0
votes
3
answers
1k
views
Unable to display image from JSON API in Angular
JSON API
teams": [
{
"logo": "/wp-content/themes/squiggle/assets/images/Adelaide.jpg",
"abbrev": "ADE",
"name": "Adelaide",
"id": 1
},
component.ts
teams = ...
0
votes
1
answer
64
views
Android Volly Parsing Error for Nested JSONObject
I am trying to post Json data via Android Volly library but getting an error.
Here is my Json body which perfectly working with Postman.
{
"fullName": "Mr X",
"fatherName": "Mr Y",
"motherName": "...
0
votes
0
answers
51
views
Why am I getting this JsonObjectRequest error? What am I doing wrong?
So I am a beginner and I am trying to build a weather app. This is my get weather method
@Override
protected void onResume() {
super.onResume();
Log.d("Main","in resume");
getWeather();
}
...