All Questions
9,876
questions
-1
votes
2
answers
1k
views
How do I convert a java object toJSON format without using any external libraries or dependencies for java?
static class DataObject {
private String access;
private String foo;
private Int age;
}
to {"access" : "value","foo":"value","age":&...
0
votes
3
answers
239
views
Expected a value of type 'String', but got one of type 'List<dynamic>'
I want integrate Flutter with an ASP.NET API. the problem is when I create minimal API, the JSON I retrieved from MapGet is a string, when I try to jsondecode() it give me:
Expected a value of type '...
0
votes
1
answer
167
views
Laravel FormRequest Validation for Rest API get calls with 2 query json params not working properly
I got a Laravel FormRequest class that should validate two JSON query strings (nested objects and arrays) on a GET route on my JSON Rest API. I pick up the json query strings, decode them to php ...
0
votes
3
answers
925
views
How fetch a json query response from an api in python using requests library?
I want to pass a json query as an argument in the requests.get method in python and get the query based response from the url.
query_params = {
"query": {
"exists": {
&...
0
votes
1
answer
24
views
Angular2- Can't call an API with a service in Angular
[Trying to call this API file in Angular through a service. I was able to call a local JSON file before with ease but this one is not working.The second image is the table I want to setup for the data ...
0
votes
1
answer
33
views
Loop through JSON array from API Retrofit
I'm having problem with parsing my JSON Array from an API call. The response from the API look like this
{
"SUCCESS": [
{
"user_id": "susan",
"...
0
votes
1
answer
512
views
How to serve JSON file via React without NodeJS?
I am using React without NodeJS. I created it using
npx create-react-app my-app
I want to serve a static JSON file or its content (I already have the file in the project) via a link so that it can be ...
-1
votes
1
answer
151
views
How can I retrieve the 'id' key from an object in an API endpoint containing an array, in order to update data using the PUT method in React?
So I had to use PUT method in react to update a piece of data inside an API. I have the endpoint which leads me here:
{
"pagination": {
"sortDirection": "...
1
vote
1
answer
182
views
How to use import Geopackage data to my Django RESTful API?
I want to create a full-stack web application to let users query parks and greenspace in the UK, something like this: https://www.barnet.gov.uk/directories/parks.
I want to build a Django RESTful API ...
1
vote
1
answer
83
views
How can I fix the issue of my Flutter app not showing API data?
This is a shopping app in Flutter and I create a controller, model, bindings and provider for fetching and showing API data in application.
this is the controller:
class ShopController extends ...
0
votes
1
answer
25
views
When use post, when use get
I have a doubt, I have an API in which I will pass a JSON to get data referring to a request.
So is it necessary to use the ResquestBody, in this case, do I use GET or POST?
0
votes
1
answer
67
views
having a error with an api in web scrapping
i was web scrapping a website and the website had a hidden api to web scrape from so when i web scraped the api it returns to me this error and it doesn't give me the data that it have.
code": &...
-1
votes
1
answer
148
views
Login in Javascript without a backend server
How can I fetch and send data without a backend server?
I have taken on as a project to create a login with JavaScript. Does it make sense to create my own JSON file? Where do I store data with using ...
0
votes
1
answer
17
views
Problem with Laravel and timestamp utc on different field
In the dabase i store the validation_parcellaire_at with :
$data = ['validation_parcellaire' => ($validation==1?\Carbon\Carbon::now()->toDateTimeString():null)];
In the database structure :
...
0
votes
1
answer
194
views
Swift - Error decoding JSON "Expected to decode Array<Any> but found a dictionary instead." [duplicate]
this my first time asking a question here, so please bear with me😁. Im using SwiftUI and im trying to fetch data from an API and store it in an array, i have 2 files as of right now:
MoviesFetcher....