Most voted "json" questions
JSON (Javascript Object Notation - Javascript Object Notation) is a lightweight data exchange formatting. For humans, it is easy to read and write. For machines, it is easy to interpret and generate. It is based on a subset of the Javascript programming language, Standard ECMA-262 3rd Edition - December/1999.
Learn more…3,116 questions
Sort by count of
-
0
votes1
answer41
viewsWhat’s the problem? Just return Undefined when I try to specifically access temp
var xhr= new XMLHttpRequest() var bot = document.querySelector(".botao"); bot.addEventListener("click", function(){ console.log('buscando...') …
-
0
votes1
answer98
viewsPython - Ignore Nan values in a . csv and add the rest
Hello, I have a file . csv that I am trying to pass to json Produtos Quantidade Bala 50 Refri NaN Salgado 25 And I’m importing for a json, wanted to know how to ignore the Nan values and return the…
-
0
votes0
answers156
viewsButton loads all instead of filtering by group
I have a problem, where if I press the button to load more blocks through the database, it will load all in the ID order, however if I have in some filter it keeps loading all instead of only that…
-
0
votes1
answer102
viewsgenerate a php json
hello I have a problem I believe you can help me, is the following need to have a json of this genus { "nodes":[ {"name":"Barry"}, {"name":"Frodo"}, {"name":"Elvis"}, {"name":"Sarah"},…
-
0
votes1
answer33
viewsUnexpected token : from a URL with extension . json
When trying to get a JSON through the URL: http://www.cidades.ibge.gov.br/gmap/shapes/35/MU_M13_3550308_1000.json I get a status 200 with the error: Uncaught SyntaxError: Unexpected token : Using…
-
0
votes1
answer1063
viewsHow to use pep8 in Vscode?
I added the extension to the file Settings.json, but when compiling it does not show the errors in the default it should, how can I add PEP8 and test in vscode?
-
0
votes2
answers57
viewsConsume a JSON result (beginner)
Hello, I have a very simple test. A method returns a JSON(), but how I access the values within this return? In the Test method I would like to use some value of the returned JSON. Could you help?…
-
0
votes1
answer366
viewsHow to load the latitude and longitude pairs to a C# object and work them?
Good night! I’m developing a web page where the user can plot a route. I use the google maps api. I need to take the latitude and longitude pairs of the route, press for an object c# and, after…
-
0
votes1
answer29
viewsHow to update an array with Mongodb and Morphia?
I need to update a Ingredient in the ingredient list. So far I only know how to update the entire JSON. How do I update only one item of the array? { "_id" : ObjectId("573c721f75fe72149c4d9987"),…
-
0
votes1
answer763
viewsTraversing complex JSON structure with java Script
Hello, I’m starting now in the world of javascript, I would need help to traverse the following json structure: I need for example to increment a counter when the field "win" is true, I need to…
-
0
votes1
answer298
viewsData in JSON format is not shown
Hello, I have the following php code: <?php require("config_local.php"); //conexao com o banco de dados $area = "eua"; $st = "ny"; $sql = $pdo->prepare("SELECT…
-
0
votes1
answer487
viewsAndroid - Asynctask and Progressdialog
Hey there, guys. I’m just starting in the Mobile area and I’m having some problems with the issue of user experience in my App. In my App, it obtains a JSON from the server through a AsyncTask.…
-
0
votes3
answers695
viewsHow to create a JSON Object in Delphi
I’m trying to create a JSON with values that have been populated by the user. So far I have it, but it’s not working procedure TOAuth2TesterFrm.Button2Click(Sender: TObject); var nome_evento:…
-
0
votes0
answers284
viewsSend a JSON + Multipartfile to an endpoint. Spring Boot
Hey, guys, all right? I’m doing a project and I got stuck in a certain part. Summarizing what needs to be done: I need to create an endpoint that receives a JSON from a Person object (Name, Password…
-
0
votes0
answers119
viewsError in http Connection org.json.Jsonexception: End of input at Character 0 of
When I try to catch one JSONArray of the internet, it presents an error. Error Error in http connection org.json.JSONException: End of input at character 0 of This error happens when it will try to…
-
0
votes0
answers579
viewsError: Unhandled Exception: type '_Internallinkedhashmap<String, Dynamic>' is not a subtype of type 'int' in Flutter
Hey, how you doing? I am still learning flutter and am having a problem authenticating the user. Even if I receive the status 200, I cannot navigate to the authorized page. I wonder if someone could…
-
0
votes1
answer145
viewsError picking JSON from text - JQUERY
I’m rescuing a json of a text, however, the following error occurs: XMLHttpRequest cannot load http://www.vagas.com.br/vagas/feeds.js?q=engenheiro. No 'Access-Control-Allow-Origin' header is present…
-
0
votes1
answer2876
viewsInstagram API get information about a particular post
Is it possible to access the media (of course public) without having the authorization of the user responsible for it? The idea is to know the number of likes and comments of a particular post via…
-
0
votes2
answers453
viewsHow to remove some data from a JSON and display only the rest?
Hello, I want to print some data from a JSON page in PHP, for example: I got this page here http://hts03.kshost.com.br:8642/statistics? json=1 JSON: { "totalstreams": 1, "activestreams": 1,…
-
0
votes2
answers1475
viewsSend 2 Json objects to $http in Angularjs
I’m using C#/EF/Angular, in my backend I have the following method, which waits for 02 parameters: public dynamic save(Entidades.CheckList json, Entidades.CheckList json1) { master = new…
-
0
votes0
answers8
viewsGroup API Output via JSON
Is there any way to Group the returns of an API, accessed via Json cpReferencia = 1 cpDataMoldagem = 26/10/2020 | cpStatus = APROVADO cpDataMoldagem = 20/11/2020 | cpStatus = NEGADO…
-
0
votes1
answer147
viewsControl a new tab with Cypress
I’m testing an app with Cypress, and I have a problem. Clicking the button (Manage) opens a new tab and I would like to know if I can force it to open in it or make cypress use the new tab. Unable…
-
0
votes1
answer1786
viewsReturn PHP array in JSON in AJAX
I have the following code: function atualizaPainelQtdeReservas(){ var dataFiltro = $(".dataFiltro").val(); $.ajax({ url: "crud/painelQuantidadeReservas.php", dataType: 'html', data:…
-
0
votes1
answer207
viewsRead json data inserted in mysql
I’ve seen many tutorials, and they all include [] but this one hasn’t, supposedly I’m missing something, can you help me ? In the database is id data, id being the base code for each product that in…
-
0
votes2
answers132
viewsConvert JSON to Array
I have the following JSON: let result = {"0":4,"10":4,"30":6,"60":9,"90":12,"120":15,"150":18,"180":21} I need to convert to Array in the following format:…
-
0
votes1
answer36
viewsWhat are the functions of these backslashes in this sentence? http.POST("{ "hello ": "world "}");
// start connection and send HTTP header and body int httpCode = http.POST("{\"hello\":\"world\"}");
-
0
votes0
answers12
viewsHow do I access a JSON property that contains a hyphen in React?
All right? I have a question and a problem!!! I believe the title speaks for itself.... But how do I access a Json property that contains React hyphen? Example of how the property can be: {…
-
0
votes3
answers433
viewsMy json returns invalid character in PHP
I need to assemble a JSON, in the PHP, to return data to Angularjs, but one of the Object data from JSON is coming with the letter "á" with another character. How can I correct this? NOTE: The name…
-
0
votes2
answers71
viewsfilter object array based on string array
Hello I have an array of objects like this: product: [ { id: "1", name: "product 01" }, { id: "2", name: "product 02" }, { id: "3", name: "product 03" }, { id: "4", name: "product 04" }, { id: "5",…
-
0
votes0
answers111
viewsSwagger’s response body with the message "can’t parse JSON. Raw result:"
I came across an unusual situation in Swagger version 2.9.2. The flow that starts through the created endpoint works normally, but along with the body appears the following message can’t parse JSON.…
-
0
votes1
answer48
viewsHow to get the value of a JSON field
I want to get the strings from inside the field text but they end up returning null. The JSON I get is this:…
-
0
votes1
answer479
viewsIntegration between systems with PHP
I need to provide a service for other systems to consume. These systems can make requests POST (string, array, xml and json) and GET. Well, I know I can consume services from other systems using GET…
-
0
votes0
answers79
viewsHow to use the contenttype sent by the client on the server
Good afternoon! I am trying to understand the workings of contenttype. As far as I know, I would be telling the server to use the formed JSON UTF8 to correctly encode the data I am sent.…
-
0
votes0
answers15
viewsJson-server api does not render images
Good morning, I created an Ecommerce api with json-server and when I do the rendering component on the screen, the api images does not work, my project is divided into two folders, api and web, the…
-
0
votes1
answer30
viewsHow to pass a JSON to the Express front end
Hello! I was wondering if there’s any way I can get a JSON file to the Front End using Express... I’m using this method: app.use(express.static(__dirname + '/public')); app.get("/", (req, res) =>…
-
0
votes0
answers16
viewsTkinter Python - Json + Entry
I am trying to create a window with 3 Entry, and 2 buttons, one to open a JSON and load some data into these entrys and the other button to save the changes in JSON. Save button and Entry positions…
-
0
votes1
answer285
viewsHow to not duplicate items in a list returned from json with ajax
I’m having problems, basically I’m doing a search in products with like, but is duplicating the products, I’ll attach an image that clarifies better. $(document).ready(function(){ $("#search").on(…
-
0
votes0
answers40
viewsLINQ not recognizing method that returns a Boolean
I’m having this mistake when I try to perform a query with the Entity within a Iqueryable. "LINQ to Entities does not recognize the method 'Boolean Checkpast values(Int32)' method, and this method…
-
0
votes1
answer51
viewsReturn in JSON
You guys, a doubt. Making an API on NET 5 and using EF, when I make a query for related data the return on JSON gives error 500. // GET: api/Estadoes/5 [HttpGet("{id}")] public async…
-
0
votes0
answers86
viewsconvert json data to string or array in php
I have this json and would like to know how to convert it to an arrag/string {'texto_mensagem': {'texto': 'Mensagem de envio'}, 'numero_celular': [{'numero': '5537988440956'}, {'numero':…
-
0
votes2
answers277
viewsReturn Multiple values with PHP jQuery
I have a Function that returns me the values of a Grid in a Modal I call the function it makes a Select in PHP and returns me the data within a Modal. Except that besides bringing this data I need…
-
0
votes0
answers774
viewsGenerate PDF by Ajax
What I am trying to do is for the user to click the button generate of a form, manages a .pdf by Ajax request, ie I have three pages, where the Index.php this form, the controller.php this is the…
-
0
votes1
answer33
viewsSet amount of returns per function that filters JSON
I have the following code to filter one JSON, it works perfectly, the only problem I’m having is to choose the number of results displayed. (currently only displays a single result). var elemento =…
-
0
votes1
answer56
viewsArray that is turning into object
When using the json Decode function on a json, I’m having a problem. When the numbering is perfectly in order(0,1,2,3...) it is classified as arra: [2016-08-01] => Array ( [0] => 07:00:00 [1]…
-
0
votes1
answer390
viewsPopulate object in Swift using data from a JSON Return
I have a webapi that returns a list of evidence: { "Provas": [ { "Codigo": "11111111111", "Disciplina": { "Codigo": "111111", "Nome": "SOCIOLOGIA E EDUCAÇÃO" }, "Tipo": "SUB", "Correcao":…
-
0
votes2
answers98
viewsPass variables in the Intel getjson XDK URL
I started to study javascipt now and I need to pass two variables to a sum method with getJSON and I don’t know how to do it. I created my app with XDK Intel, the server created with Delphi xe2…
-
0
votes1
answer526
viewsPick specific field in JSON and store in a variable in the Controller
I have the following code, and I would like the categories that are in the json array to come from an external JSON file, only I couldn’t just take the category names and do like this example:…
-
0
votes0
answers713
views"JSON not defined" error
Hello, I have a facebook API that picks up the posts from my page and shows in a Patcher that I did, it was working properly, but a few weeks ago this error started to appear and the posts no longer…
jsonasked 8 years, 3 months ago Willian Frost 1 -
0
votes2
answers732
viewsRetrieve via Jquery custom "date" attribute value
I am a beginner in programming and I have a question about Jquery (if I’m wrong, please correct me...). I have a screen that generates several div’s dynamically with information about clubs, and…
-
0
votes0
answers53
viewsI cannot manipulate data coming from the Web Service (Json)
I’m trying to get the result of a request for an API (json), and send it to another function that will record to localstorage, I even got it with the product value, but with the name that is string…