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
answer121
viewsHTTP GET in JAVA with a different result than POSTMAN
I am running an HTTP Get Request in Java using Gson to use the data in my program, but the first and last attribute are coming as null. However, when performing the request in POSTMAN I saw that…
-
0
votes1
answer267
viewsHow to delete an object in . json using Python?
I use an Excel processing system, which uses Python to make most of its features. I’m having a hard time in this situation: I want to edit a file. json using Python, in particular, I want to delete…
-
0
votes3
answers86
viewsDeserializeobject Json
Good morning, I’m trying to deserialize a JSON but there’s no way I can, I get the following JSON from another system:…
-
0
votes1
answer195
viewsConvert JSON to CSV
I’m developing a tool that captures information from the github API and saves it to a file .json. Code: const axios = require('axios') const fs = require('fs') const data = require('./data.json');…
-
0
votes1
answer57
viewsIs there any Pattern related to the typing or not of values in the return of JSON in API’s?
I wonder if there is any problem involved in passing the values of the keys in JSON all as string or if there is any justification to always keep the original types of data? My question is based on…
-
0
votes1
answer15
viewsError printing Owner.screenname and Owner.url (Dailymotion Data API) property value
When running GET for PLAYLIST and VIDEO resources, I had a problem. When running GET on my console, the request correctly returns the values of the Owner.screenname and Owner.url attributes;…
-
0
votes1
answer601
viewsHow to save a json object to mongodb, which is the answer to an API post
I need to save a certain field,from a json object,which comes from the response of an API I called. Save some fields of this response json object,in some fields of my colletion/model on Mongodb also…
-
0
votes1
answer43
viewsNode.js does not run correctly
Good morning, afternoon, evening, I’ve been having these problems for a few days, and now it’s crucial I fix it, but my experience is 0 with Nod.js, React, someone can help me out? What I already…
-
0
votes2
answers368
viewsHow to take data from a specific field in an XML,with Nodejs,and then save it in the Mongo database
In an API response, it brings me an XML, but I need to capture just a few specific fields and save it in my database Mongodb with the package Mongoose,using Nodejs and Axios. My XML response comes…
-
0
votes1
answer40
viewsReturn all JSON items with forr
Come on, guys, I need some help. I have a Function GET http and returns an array of JSON objects and would like to return the data contained in these objects, currently it returns like this: {…
-
0
votes1
answer130
viewsHow to bring an array via ajax and place results in a select
Hello, I am trying to bring an array via ajax and play the result in a select, I can make a query via ajax where each client I select in a select it makes the query via ajax and returns the services…
-
0
votes2
answers137
viewsHow to filter JS only with numbers and letters (no special characters)
I need help to do a function where I put a code to search and it shows me the result. The problem is that it currently only brings the result if I put it exactly as it is in JSON. Ex.: if I search…
-
0
votes3
answers819
viewsUpdate content of JSON file
I am trying to manipulate a JSON file using Python but whenever I run the program it erases the JSON file causing me to miss the last change, has how to make it just add to the file? Filing cabinet:…
-
0
votes0
answers137
viewsPOST method does not work properly Node.js and express
good evening, by way of tests I created a small API to understand its functioning, however when running the POST method I found that it only returns me the empty keys: [ {} ] The correct thing would…
-
0
votes1
answer63
viewsloop in json in flask using render_template
Hello, I have the following json: {"movies": "[{\"title\":\"Hercules\",\"rep\":99.96},{\"title\":\"In the Dark\",\"rep\":98.12},{\"title\":\"Titas\",\"rep\":96.61}]"} and would like to scroll…
-
0
votes0
answers321
viewsProperty 'profileStore' is Missing in type '{}' but required in type 'Readonly<Appprops>'. ts
I wanted to at least print the background red I put on footer.module.scss on index.tsx. I’m using this structure:
-
0
votes1
answer46
viewsManipulating Async/Await function return with JSON.parse - REACTJS
I have the code below that is returning an error where I am not understanding how to solve. The log console of "Ret.value" returns {"id":1,"name":"Max"} string correctly, but in JSON.parse. Argument…
-
0
votes1
answer118
viewsExtract data from an HTML form with PHP and write Json
Hey there, guys. I’m trying to get PHP information from an HTML table on a website, but I’m not able to separate the extracted data. My intention is to generate a Json file with this information…
-
0
votes0
answers65
viewsGet Json data with file_get_content with pagination
I am capturing Json data from an external url outside of my domain using file_get_content the url structure and this way https://site.com.br/pg=1 I use the code below to extract this data function…
-
0
votes0
answers38
viewsTransform Delimited String into Nested Json (Java)
Good afternoon, I would like your guidance, I am a little confused on how to proceed in a situation in Java + Spring Boot. I get from the database 2 columns of strings, the first is a path delimited…
-
0
votes1
answer1069
viewsHow to count repeated items with javascript?
Example: const cores = [{id: 1, cor: 'azul'}, {id: 2, cor: 'azul'}, {id: 3, cor: 'azul'}, {id:4, cor: 'verde'}, {id: 5, cor: 'verde'}, {id: 6, cor: 'azul'}, {id: 7, cor: 'verde'}, {id: 8, cor:…
-
0
votes1
answer37
viewsI need help to create a condition to calculate the quantity of the product
The code below is with the function of adding the item by checkbox, need help so that it was by quantity, in the case of input in which the user will insert the quantity and calculate according to…
-
0
votes0
answers14
viewsReload Node_modules at Angular
I have a problem loading a JS module that I created for my Angular project, which in this case is a horizontal Timeline. The interesting thing is that if I point out the application via app-routing…
-
0
votes1
answer47
viewsAdd JSON array value in PHP
Hello. I need to add all the arrays totalValue of this Json structure. In this case I wanted it to return 18897+13709 = 32,606 array(5) { ["list"]=> array(9) { **[0]**=> array(29) {…
-
0
votes1
answer37
viewsScanning JSON ...and repeating images
What’s wrong with that code? In the first item of the catalog has 2 images, and in the second item has 1 image (JSON). But on the page when executed it shows the first item with all 3 photos and the…
-
0
votes1
answer49
viewsProblems for the development of the POJO with Rest Assured
Hello, I’m training with Rest Assured, I can’t show the project itself, but basically, it’s past token and some parameters per header, and the API returns various data, it would be something like :…
-
0
votes1
answer171
viewsConsuming API with Refit C#
Good guys, I’m having a little problem consuming an API. I am with an Aspnetmvc web application and need to consume an API. First with a user selection I run this method below in the controller:…
-
0
votes0
answers26
viewsfetch data from omdbapi
I have this code (meusite.com/imdb.php) <?php $movie_id = 'tt0387564'; $data = json_decode(file_get_contents('http://www.omdbapi.com/?i=' . $movie_id . '&plot=short&apikey=') , true);…
-
0
votes2
answers73
viewsUsing Regex to give match quotes after delimiter
I need to use regex to give match in all double quotes occurrences after the two dots (:) in a JSON output. JSON: { "data": [ { "ServerName": "server.name", "Installed": 204, "Downloaded": 60,…
-
0
votes1
answer369
viewsPass input value to URL API
Pass INPUT value to URL API I have an account on an external IP system that has an API that goes through the URL. For example, if I want to authorize an IP, just type in the browser...…
-
0
votes0
answers26
viewsI’m having errors with json [shellscript]
I’m trying to learn how to make bots for Telegram, but this mistake keeps appearing false|400|Bad Request: can’t parse reply Keyboard Markup JSON Object caldeirão_furado.sh: erro: linha 24:…
-
0
votes1
answer80
viewsPHP returning an invalid JSON
Good morning. I am working on a system where all Curl returns will be saved in a JSON at the end of the application to be used by the Mobile guys. The system is all in PHP, basically it looks for…
-
0
votes1
answer100
viewsJavascript function making nodemon run in loop
I made a function that works when run from node app.js, but when I run with Nodemon it starts and reboots forever. The function in question is used to write a JSON to a file. I need to use Nodemon…
-
0
votes0
answers21
viewsUsing "json_populate_recordset" in Postgre in fields other than json x table input
I have a proc where you have to input the JSON file and insert it into a temp table(_test). resultTeste := (select dados ->'Documento'->'Apolice' from _teste as result); INSERT INTO…
-
0
votes1
answer27
viewsIt is possible to create a Function that takes as parameter a JSON and goes through this JSON saving the data in a table, but filtering
It is possible to create a Function that takes as parameter a JSON and goes through this JSON saving the data in a table, but filtering the Json. Today is inserting direct json without filter.…
-
0
votes1
answer74
viewsHow do I access elements of a json that contains multiple keys in python?
I’m practicing learning Apis with HG Finance , but when I filter the information through a FOR , I see that presents an error called KeyError: nome da moeda, But the code runs the same way, I’d like…
-
0
votes1
answer117
viewsIs there any way to get a JSON "result" using Oracle’s utl_http package
Is there any way to get a JSON "result" using the package utl_http oracle ? The status code of the following routine returns 200 but would also return a "Sponse" with a JSON conformation, an…
-
0
votes0
answers22
viewsSerialization error while loading google chart Charts
I have the method JsonResult called "Carregarchart" which returns a DataTable for a request Ajax where I’m trying to popular data on a google graphic Maps, and the problem is that the following…
-
0
votes1
answer71
viewsReact-Hooks/exhaustive-deps | Error in an assync function when taking data from an API
Hello, I’m having an error in React.Js that I don’t understand in trying to consume data from an API I created myself. I created a loop so that I could get the json information and print my site.…
-
0
votes0
answers35
viewsPython packages, how to send json files
Hello! The title seems a little contradictory, but the following is happening, I’m making a library in python 3.8 and using the following way to install it: pip install…
-
0
votes0
answers57
viewsMongodb Query in PHP Subdocument Index
I need a force. I have a Mongodb database with a document containing other documents, and I need to create a query in PHP from a key in that subdocument. Follows the structure. { "_id":…
-
0
votes2
answers72
viewsHow to access a String inside the body() in the retrofit in Kotlin?
I’m trying to access the json content inside body() through retrofit. I need the "url" in String. What’s missing from my code? Debugging the code I saw that the response.body() is returning the…
-
0
votes1
answer44
viewsHow to return a JSON in ASP.NET API that has another JSON inside?
I don’t know if my question expresses well, but the kind of feedback I need is something like this: [ { "Id": 0, "Name": "string", "Image": "string", "Why": "string", "What": "string",…
-
0
votes1
answer33
viewsJSON return format - NODE
I am mounting the REST API in Node, already closed the connections with Oracle and is working, however I need a JSON return different from the way being returned Currently he’s returning me this…
-
0
votes2
answers52
viewsProblem with "see more" (button)!
I am with a small project that is to optimize the "see more" on a site or application and I came across a problem. <div class="conteudo"> <h2> <span>teste</span> </h2>…
-
0
votes1
answer40
viewsPostman returns JSON, but Fetch request returns status 204 in browser
I’m making a request with the function Fetch(), but I always get the same message, with 204 status: However, when making the request via POSTMAN, I receive status 200, with the necessary…
-
0
votes0
answers10
viewsapexcharts does not plot the information
Someone, I have a strange error here with Apexcharts + PHP and Javascritp, although the console show that the information is coming right he does not plot, I have looked at the documentation and do…
-
0
votes1
answer62
viewsView Arrays Data Items
Model of the json: class ListaPedido { int numero; String localEntrega; String dataHora; String formaPagamento; List<ItensPed> itens; ListaPedido({ this.numero, this.localEntrega,…
-
0
votes1
answer92
viewsHow do I use Ajax to send form data in JSON format to REST API in PHP?
I need to send data from a form in JSON format to insert into the database through an API made with PHP. I researched a little and saw that it is possible to solve with Ajax but I am not getting.…
-
0
votes0
answers24
viewsPython - Scrapy - Return nested Json (Json’s List)
Hello, I’m having a problem generating a dictionary answer within another dictionary. I have a home page that contains 8 bimonthly programs, in these picked up their respective links and properties.…