Provides simple classes for JSON responses that adhere to a standardized structure.
Questions tagged [jsonresponse]
286 questions
2
votes
0 answers
What does REDACTED_US_STATE mean in the google Geocoding API result
First time I see this and searching for REDACTED_US_STATE in Google gives nothing. I use the android-PlacesAutocompleteTextView witch is An AutocompleteTextView that interacts with the Google Maps Places API. It provide location results and caches…

Tord Larsen
- 2,670
- 8
- 33
- 76
2
votes
1 answer
How to handle Array of objects in response while using StringRequest in android volley
I have android app . in that app I'm posting some string data on server and get some response.
Problem is ,I'm receiving the response in jsonstring,but I want this data in json array.
althouugh when I'm using JsonArrayRequest ,it didn't allow post…
user7462841
2
votes
1 answer
Symfony: sending a jsonResponse
I am working on a symfony application, and I am trying to delete a remember me cookie, using the following code:
$response->headers->clearCookie($cookieName,'/');
I have to call the response->send() method for this to take effect, this works…

ZeSoft
- 305
- 2
- 4
- 13
2
votes
1 answer
HttpClient's response in Asp.Net returning 404(Not found: Could not find the controller)
I have to authenticate and then request a Web Api in asp.net. The authentication is completed properly. But when I pass the session values to a new request to generate a certain response, the response returns an Controller not found error. I am…

Prasanna Man Rajbanshi
- 82
- 1
- 13
2
votes
0 answers
The data couldn’t be read because it isn’t in the correct format. in IOS using swift 2
I'm developing an ios app, however when I try to get a server response by using this:
if let jsonResult = try NSJSONSerialization.JSONObjectWithData(data!, options: []) as? NSDictionary
I get an error from the server that says:
The data couldn't…

zeeshan nazakat
- 151
- 3
- 18
2
votes
1 answer
Unable to get the data from the json response with multiple arrays
Below is the exact json response in which I need to retrieve the value of "count(dm_document.object_name)". I am not understanding to to parse this. pLease help.
{
"status":"ok",
"data":
[
[
{
"dataType":"Double",
…

Praveen
- 89
- 5
2
votes
0 answers
Is this how REST response is sent from server side (Yii2) to mobile side?
I'm building a REST-full API in Yii2 framework. I'm sending the data in JSON format and returning response in JSON response as well.
I'm making the test request with the call via cmd:
C:\Windows\system32>curl -v -H "Content-Type: application/json"…

delux
- 1,694
- 10
- 33
- 64
2
votes
2 answers
Django minimize json in JsonResponse
Is there a way to minimize a json in JsonResponse?
By minimize I mean removing spaces etc.
Thanks to this I can save around 100KB on my server ;).
Example:
I have a json:
{"text1": 1324, "text2": "abc", "text3": "ddd"}
And I want to achieve…

Szymon Barylak
- 92
- 1
- 2
- 8
2
votes
2 answers
Error parsing JSON returned via Symfony Component's JsonResponse
My Ajax call:
$.ajax({
url : path,
type: 'POST',
dataType : 'json',
data: data,
success: function(memberExtra) {
console.log (memberExtra);
}
});
My response:
HTTP/1.0 201 Created
Cache-Control:…

Schmudde
- 1,078
- 1
- 11
- 19
1
vote
0 answers
How to group by the attributes in a JSON Response in Karate report
I am comparing the JSON responses for two services, they should return similar responses, but sometimes some of the test cases fail becuase some attributes are different. we want to group by the failed cases and see what elements are different. for…

Reyhaneh Hussaini
- 11
- 1
1
vote
1 answer
Set cookies and return the message in FastAPI
Why don't I have cookies installed in my browser when I try to return a message in this code?
@post("/registration_user")#, response_class=JSONResponse)
async def sign_in_user(self, item: schemas.RegistrWithoutLogin):
…

Serega
- 171
- 8
1
vote
1 answer
how to correctly receive a response from the server in flutter(dart)?
I can't process the response from the server correctly in flutter. The user is created successfully in the database. In the postman application, I also get a response from the server: {"success":true}. But for some reason a connection error is…

Xlain 8
- 21
- 1
1
vote
1 answer
Django JsonResponse customize its header
I want to change response header of
> from django.http import JsonResponse
function for example change Date header
how?

mohamadreza ch
- 311
- 4
- 13
1
vote
1 answer
Parsing JSON response for individual value
I'm having trouble parsing the below JSON Response Dict object to just return/print the 'data' value (testing.test.com). See the dict below:
[{'_id': '~1742209152', 'id': '~1742209152', 'createdBy': 'test@test.com',
'createdAt': 1666089754558,…

EarthlyBale11
- 23
- 4
1
vote
0 answers
How to handle restful API calls with null JSON response?
Using the requests package, I'm looking to loop through API calls, return JSON responses, and append the responses to a list. The for loop is failing because some of the responses are returning NULL responses. How can I skip past the NULL responses…

Pballer88
- 23
- 1
- 5