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
-
2
votes1
answer91
viewsCan I pass 2 Laravel array_encode?
I can pass 2 json_encode in a single function in the Laravel? What is the best way to return 2 JSON different? Where 1 consults the table Products and the other the table States. Look at this…
-
2
votes1
answer250
viewsLeave some input select Multiple(Angular Material) pre-marked
I am using Angular Material in my application, and it in turn has this list created to fill in my input: lista: any[] = [ { name: 'Cursos', tribunais: [ { value: 'RDC1'}, { value: 'RDC2'}, { value:…
-
2
votes1
answer479
viewsProblems with Bodyparse on Node.JS using Express (data like POST)
Hi, guys! I am starting my studies in Node and React-Native and I am facing some problems in data transaction in front POST method for my API. I had a similar problem with headers, but I was able to…
-
2
votes1
answer1491
viewsBrowse and count records from a JSON
I have a Python code that I can display on the screen all JSON records, only I need to bring only the field 'Nome' and the count of each. First he brings with [] (list format) and I need the…
-
2
votes2
answers291
viewsVue Submenu menu from json
Hello, I’m beginner in Vue I’m wanting to make a menu with submenu coming from a json, follow the codes I made: <template> <div id="app"> <img alt="Vue logo"…
-
2
votes2
answers558
viewsCheck values within a JSON
In Javascript I’m getting a JSON like this: function checaEad(){ var urlEad = 'http://urljason.json'; $.getJSON(urlEad, function(data) { console.log(data); }); } He returns it to me:…
-
2
votes1
answer402
viewsAccessing objects from a JSON
I have the following file .json, in case I want to access initial data, called suzuki at the beginning of json, how do I get this information? That one .json is responsible for making the data Seed…
-
2
votes1
answer147
viewsHow to properly configure JSON return with content coming from Mysql with accent
I have a problem in the return JSON of some information from my BD, some are accentuating and the answer fails, I have tried some past suggestions, such as this: $response = utf8_encode($response);…
-
2
votes1
answer77
viewsHow can I create a json decision
How can I create a json decision? Imagine I have two variables and these variables have an age group and I wanted to make IF the first option (age range from 0 to 17) is chosen Angela was shown on…
-
2
votes1
answer199
viewsConvert a file path to String
I’m in need of help, I need to read a JSON file (I’m using the GSON library), and for that I need to transform a Path variable to a String. Below is the code for better understanding. public void…
-
2
votes1
answer110
viewsFill items from a Dropdownbutton with a Json value
I have a field DropDownMenu and would like to fill in the Items of it with the values of my Json. I have this code: String _mySelection; List<Map> _myJson =…
-
2
votes1
answer222
viewsHow to add an object inside stdClass() and print the json
How do I add a variable or object within a json. It is thus printing my json: {"Registros":[{"RegistroOperacaoID":"39","Tipo":"11","DataOperacao":"2019-03-27…
-
2
votes1
answer142
viewsjson.loads Jsondecodeerror
The cookies posted here, there is no validity, so if you want to do evil, look for another I have these cookies I saved using the PHP language…
-
2
votes1
answer560
viewsRead API return on a Jsonobject in case of errors in the URL
I am trying to consume a weather forecast API (https://openweathermap.org/current) in Java but I have a question regarding the return of JSONObject. I’m using the following code to generate the…
-
2
votes2
answers209
views$. each on a JSON of cities
I am with a Json of cities in the following structure: var cidade = [ { "sigla": "AC", "nome": "Acre", "cidades": [ "Acrelândia", "Assis Brasil", "Brasiléia", "Bujari", "Capixaba", "Cruzeiro do…
-
2
votes2
answers181
viewsImport of python modules
I’m having a problem with python. I have a python code file working with Selenium, and I have another python file working on JSON. These two codes are inside the same folder, for me to import a…
-
2
votes1
answer53
viewsHow to delete repeated names with loaded values?
I have the following names from JSON in this sequence [ { "Animal":"Leão" }, { "Animal":"Leopardo" }, { "Especie":"Aves" }, { "Especie":"Mamiferos" }, { "Especie":"Répteis" }, { "Animal":"Cachorro"…
-
2
votes2
answers484
viewsHow to hide property in Efcore listing
Hello, I have a question regarding the Efcore Webapi of ASP.NET Core. I have my Service, Professional, User and Scheduling entities, where in the service I have a foreign key for the professional…
-
2
votes3
answers1652
viewsConvert a JSON to a Java list
I’m having trouble turning a JSON into a Java list, I tried with GSON and Jackson, but I couldn’t succeed with either. My JSON is formatted like this: [[["00000000000","00000","Fulano de Souza",""],…
-
2
votes1
answer108
viewsJSON manipulation with PHP
I have that code PHP that is manipulating the JSON created in the beginning, in the end it will print/list one foreach with all the data. My question is the following, I don’t want to print all 3…
-
2
votes1
answer73
viewsError in Json passage
Good morning Guys, I have an error reading my json array when I call it in my ajax. My json: [{"id":"7","nome":"Anderson","sobrenome":"Dorea"},{"id":"6","nome":"Diego…
-
2
votes3
answers651
viewsTreat Json return array with CURL
The code below returns real estate code results from a Rest API, and it comes with array within array, expected to treat the list to get only a Code array with its value, e.g.: <?php $dados =…
-
2
votes1
answer257
viewsHow to navigate a dynamic javascript tree by setting the value of its properties?
Good evening, I own the following tree defined by JSON: [ { "roleName":"CCA", "children":[ { "roleName":"Data_Final_Índices_CCA", "$$hashKey":"object:2183", "children":[ {…
-
2
votes1
answer59
viewsReturn to category the RGB difference is smaller
I’m having a doubt, that I’m probably trying to "reinvent the wheel", but I couldn’t come up with a result. I have a color matrix (in RGB): { "muito-clara": [248,299,218], "clara": [243,209,180],…
-
2
votes2
answers785
views -
2
votes0
answers67
viewsWhat may cause the error in JSON conversion?
I’m making a Crawler, which will take the GIFS from 9gag. The code is this: In [11]: import requests In [12]: t = requests.get('https://9gag.com/v1/group-posts/group/gif/type/hot?') In [13]:…
-
2
votes0
answers20
viewsMongodb collections
I have a database in Mongo with the following collections "Productsservices" and "stock" where the stock collection will inform the stock value of a record within the product and service collection…
-
2
votes1
answer100
viewsProblem with Http Request Angular
Iae galera! Look, I have a code here that’s gets the user data when he types in his CPF, I recently started using Async functions. the idea of Async would not only be to perform the function from…
-
2
votes3
answers516
viewsHow to compare two JSON objects with the same elements in Python
I have two Apis that bring me the data in JSON. I’m just not able to make the logic to compare the two. API 1: API 2: My logic is to compare the two on the die FlightID and if it’s the same, give me…
-
2
votes1
answer194
viewsI am unable to extract data from json - React-js
gentlemen(as). I am unable to extract a data to send to api. in the /cases path the api provides json data. useEffect(()=> { api.get('cases',{ }).then(response =>{ setcases(response.data) })…
-
2
votes1
answer118
viewsCall ASYNC - AJAX
I have a problem with calls in AJAX, I need to make more than one call in AJAX to store in different variables and in that I can treat them. I’m just having trouble with AJAX’s ASYNC, because it’s…
-
2
votes1
answer112
viewsMounting ranking with sorting criteria with array
I need to sort this Array initially by points and if there is a tie, those indexes of the array that tied would be unpacked in the games, if it remained tied would jump to tiebreak and if it…
-
2
votes1
answer350
viewsJQUERY/AJAX duplicate JSON results
Gentlemen, I am making a query in a URL that returns me the results of games, but this showing me the duplicate results, could give me a light of where I may be missing? Here where I consult: var…
-
2
votes1
answer1589
viewsReact fetch() POST
I have a API (POST) in which I pass some parameter and it returns me results and the question is the following: I got a guy Dashboard where I have to take DIA data and MES data (using the same API,…
-
2
votes2
answers91
viewsProblems traversing Javascript object
I am consuming an API and displaying data with React. The API returns the following Json: { "1": { "id": 1, "nome": "Outros", "abreviacao": "OUT", "escudos": { "60x60":…
-
2
votes1
answer40
viewsHandling JSON in PHP
I have a function that consumes a REST API and that the sponse me returns a JSON file with a lot of data. But I am error in converting this data to be able to manipulate it in a way but easy. Here’s…
-
2
votes0
answers28
viewsCreate a groupedList with map
Hello, I’m new to flutter and I’m trying to create a list with grouping using the map, but I’m not getting... I saw that I can use the Groupedlistview, but how to map it? GroupedListView( elements:…
-
2
votes3
answers171
viewsTrying to manipulate a JSON with JS
I’m trying to take a data from the json file and copy it to another JSON file using Javascript, but I never did that I have this JS code: let fs = require("fs") let gravador = []…
-
2
votes1
answer83
viewsHow do I return a character from a string in the Python function with Websockets and json library?
I’m new to Python and I have a question I’ve been trying to figure out for a long time. I’m creating a tick analysis program from an investment site, and I want to extract the value of a certain…
-
2
votes1
answer41
viewsPython-aligned JSON output
I have the following Json to be treated in python: { "lojas": { "todas":[ { "CodigoLoja": "001", "produtos":[ { "CodigoProduto": "001AAAAAAA", "dataFabricacao": "11/11/2019", "preco": "300,00" }, {…
-
2
votes1
answer29
viewsTake value that would go to the ID and put in another location and save in the database
I wish to MONITOR the user’s movement from the Android APP, which will be configured with the link from my dashboard. I have the following code:…
-
2
votes1
answer48
viewsHow to pick up specific columns in JS Object
The following code will return me the following result: /** * Dados */ let data = [ { data: "01/01/2021", value1: "21", value2: "98" }, { data: "02/01/2021", value3: "22", value4: "99"}, { data:…
-
2
votes3
answers128
viewsHow to browse a JSON within another JSON in Python?
I wonder how I can walk a JSON within another JSON in Python. In this case, I have a file that is on the following link: https://sisu-api-pcr.apps.mec.gov.br/api/v1/oferta/instituicao/570 And I’m…
-
2
votes1
answer95
viewsHow to insert JSON values in Postgresql using Nodejs?
I intend to perform an Insert in a table in Postgresql. The values that will be used in the query are from a JSON in which I have access through a GET. fetch(…
-
1
votes1
answer693
viewsClient REST process JSON replay without knowing domain objects
I am making a Restfull server with Spring MVC, the controller only returns JSON, until ai blz, would my client know nothing of the domain classes and still process the requests? I was thinking of…
-
1
votes1
answer1028
viewsLooping Loops with Angularjs
I’m trying to list the two-loop data ng-repeat of my code, but 1 of them is not working. In case I’m using: <ul class="nav nav-stacked nav-pills col-md-2" > <li ng-repeat="g in…
-
1
votes1
answer570
viewsFormat JSON wrong web api
I’m having trouble returning json to my mvc 5 api. In the Get method it returns a string in this format: public string Get() { return…
-
1
votes2
answers1647
viewsHow to get (in object) Facebook data?
I’m creating a Feed (dynamic content list) with the content of a Facebook group’s wall. I know there are some features that Facebook itself provides, such as the Social Plugin - Like Box. After a…
-
1
votes1
answer164
views -
1
votes1
answer611
viewsPHP does not recognize Json code
I installed php + apache via Xampp. PHP is working, but it doesn’t recognize Json, anyone knows if they need to enable anything in php.ini? Returns the error: Notice: Undefined index: jsoncallback…