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
answer110
viewsTake a Jsonarray and set as Arraylist<object>
Basically, I have a code that gets a JSON from an API. This JSON gets a "reposicoes" array, where it contains the information I need. An example of this JSON:…
-
0
votes1
answer54
viewsRecyclerview is displaying entire json array instead of object
Inside recyclerView everything is being displayed correctly except the "name" (Notifier > name) When I use String creatorName = hit.getString("notifier"); it shows the entire "Notifier" object.…
-
0
votes1
answer99
viewsCreate . JSON file based on the result of the SQL query
I am trying to send data from my database to a . json file but I am not able to because it creates the file and nothing appears, only the empty array. my code is as follows:: <?php $connect =…
-
0
votes1
answer285
viewshow to apply json checking in js?
I am creating a form and I want to validate the person’s CPF as follows, if the person’s CPF is already in the json file the program should give an Alert saying that the user already has…
-
0
votes1
answer55
viewsmanipulating JSON JS
I want to know why it works to change but not to create var obj = {}; obj.teste = {id:1}; //esse funciona para criar obj.teste.id = 2; //e assim eu altero console.log(JSON.stringify(obj)); var obj2…
-
0
votes1
answer778
viewsSeparate values from a JSON in multiple fields
I’m doing a task in Python that requires me to search some data in a database. One of these values returns in the format of a JSON, the problem is that I need to make a "split" of these data since,…
-
0
votes1
answer307
viewsInsert Array into JSON
I have a question, I want to insert a list within a field JSON. How do I make the strings that are in the list cities become part of the city options for the state Gurajat? The code is like this:…
-
0
votes1
answer80
viewsDatatables Jquery
I can list the data, but I can’t filter the data, my query is right, returns the json, but I get a processing message. I’m using the slim for the routes. my call: <script>…
-
0
votes1
answer52
viewsjson Object in array this with java error
I have a Webservice Rest with two classes: Pedido and itensPedido. In the pedido the Insert works, but when it goes to the itensPedido that I use a JSON Array with multiple items returns the error:…
-
0
votes1
answer336
viewsHow to put an echo json_encode passing a PHP function with javascript parameter?
My question is this:: I have a php class that has a function that searches for an array of data and I put an echo json_encode that will then make the autocomplete work. as follows: <script>…
-
0
votes1
answer72
viewsFloat field conversion problems
I have a problem that at first, is silly, but I am not able to solve, I have this function in ajax, that takes the values of input, and sends it to the controler: var url =…
-
0
votes2
answers107
viewsgenerate Json through txt (Position) file by php
I’m having a hard time trying to generate the Json using the basis of a txt by certain positions. I could not evolve the code because I do not know how to make a explode in the position I need. Ex:…
-
0
votes1
answer181
viewsAngular - How to send an object inside a model in a POST method?
Good afternoon, I’m having a problem sending a POST to a published API on account of one of the expected parameters being an object, so the expected json is as follows : {"Cargo": string,…
-
0
votes1
answer742
viewsHow to create a list from data saved in Storage location
I have a task where I need to create a registry for users, save in the Log location and then in a list show on the site all registered users. I was able to save the user data, but I’m having…
-
0
votes2
answers31
viewsProblems with Variables in JS
I have some inputs that should be self-paced. Here’s how it works: I fill out the input Barcode 1 and JS automatically populates Product Description 1 and Unit Value 1. The problem I’m having is…
-
0
votes2
answers100
viewsHow to return a JSON block via request
I received a challenge that I have to accomplish my curriculum in HTML, so my professional experiences and technical skills have to pick up via request as described below: "The list of companies…
-
0
votes1
answer40
viewsAjax is not returning json in the html table
I’m trying to make a table where its contents come from an http. I am using Ajax and Json to pull the content but does not return anything on the screen other than what is written in HTML. I’m still…
-
0
votes1
answer434
viewsJson script with problem, Google Chrome locks and does not work in another browser
I am trying to auto-fill data from the ZIP code, with the following code. $("#cep").blur(function() { var cep = this.value.replace(/[^0-9]/, ""); if (cep.length != 8) { return false; } var url =…
-
0
votes2
answers53
viewsJSON does not return Mysql database data
I made a very simple application to search for projects by state in the database. However, JSON does not show any errors, but also does not return anything. I imagine the problem may be in GET. Do…
-
0
votes2
answers102
viewsAutocomplete form and check in JSON if it exists
I am trying to make a form that works as follows, the user must put his CPF and the full name will auto-complete, and the form can only be sent if everything is ok in JSON. Follows layout the model:…
-
0
votes2
answers425
viewsHow to convert JSON to array to column chart in google Charts?
I have a JSON in the following format: [ { "Pais": "Qatar", "Valor": 683900 }, { "Pais": "Luxembourg", "Valor": 519360 }, { "Pais": "Iceland", "Valor": 476710 }, { "Pais": "Bahrain", "Valor": 442990…
-
0
votes1
answer65
viewsMap JSON to array-specific format for Google Charts line chart
I have a JSON in the following format: [ { "Countrys": [ "Cyprus", "Finland", "Germany", "Grenada", "Haiti", "Ireland", "North Korea", "Swaziland", "Turkmenistan", "Zambia" ], "ListDataPerYear": [ {…
-
0
votes1
answer227
viewslist Javascript events from a JSON in the Full Calendar (Events) library
I have a variable where stores the result of a JSON through an AJAX request, as below: $.ajax( { url: 'endpoint', method: 'GET', data: { action: 'getAgenda', keyuser: idLess }, success:…
-
0
votes2
answers1534
viewsConvert a JSON to OBJECT with Angular
I have a problem, I need to transform a JSON object that I receive from my backend to an object. I’m getting this JSON {"content": [{"id": 1, "nomebd": "teste", "email": "[email protected]"}, {"id": 2,…
-
0
votes1
answer259
viewsread JSON file with JS
have this the following JSON file with the name test.json: "registro":[ {"cnpj":"46148234000117","serie":"1","numero":"1"}, {"cnpj":"46148264000117","serie":"1","numero":"2"},…
-
0
votes1
answer56
viewsJSON Challenge with JS
I have a file that JS file, I need to check the numbers that were skipped in sequence, separated by CNPJ, as would be done? [ {"cnpj":"1234567891011","serie":"1","numero":"1"},…
-
0
votes1
answer141
viewsError deserializing json
I have a little problem with deserializar mine json, and I don’t know why public async Task<IActionResult> Index() { Uri BaseAdress = Services.Token.BaseAdress; string strToken =…
-
0
votes1
answer327
viewsUpdate json field with select in the same Postgresql table
I have a table where I have to take data from a record and update it in a column from another record of the same table. These fields are like json. I was able to get the data to be entered but I’m…
-
0
votes1
answer97
viewsHow to read this example of Json correctly?
am have difficulty reading this json, because it has, in some returns, multiple addresses, image example below: Finally, can anyone help me? , I need to load or the Addressmain, highlighted in the…
-
0
votes0
answers22
viewsUnauthorized json php error
I’m hoping that when selecting a municipality the regional automatically select but this error is making me break Muringa. Can someone help me? The route is correct I’ve checked several times. below…
-
0
votes1
answer168
viewsHow to load an image respecting / linking with the return of a variable in Json
Good morning friends.... I don’t know if I’ll be able to make myself understood, but I need to upload an image linked to the type of feedback I might receive from Json. Example: Red, Yellow and…
-
0
votes1
answer44
viewsProblem consuming API data and transferring a SRC to the ID
I have the following HTML code: <main> <blockquote class="blockquote text-center">Últimos produtos</blockquote> <!-- <INICIO CARDS> --> <div…
-
0
votes1
answer84
viewsReturn a JSON block within another block
Hello! I am using Pentaho Data Integration to return a JSON from the Twitter API, but I have an error in processing JSON and return only the values I want. I’m trying to return block values…
-
0
votes1
answer33
viewsHow to list values using ng-repeat using Angularjs and Jsonresult ASP.NET MVC?
Good Friends! I am working on a MVC application that returns JSON to an Angularjs controller, it turns out that these values are unit values and lists. And when rendering in the view, only unit…
-
0
votes2
answers58
viewsHelp Require Node
It all starts when I try to receive a JSON from the CNPJ API, I am using Node and consequently NPM and thus using AXIOS to receive JSON. Okay, all right until then. However, I want to take the json…
-
0
votes0
answers23
viewses.json contains an invalid Laravel JSON structure
I have the file es.json: { "You are not allowed to do this": "No se te permite hacer esto", "Error uploading the image": "Error al subir la imagen", "Something went wrong, please contact support":…
-
0
votes1
answer206
viewsInformation an HTML inside a JSON request in PHP
I am developing an integration to send email inside Sendinblue, but in the request it is necessary to send the HTML code of the email and only works if I put " " in front of all double quotes. I…
-
0
votes1
answer26
viewsProblems with json and php listing
I have a line of json code that comes from a variable and I want to list this json list to enter a database but I can’t read it. $datesSite = file_get_contents('site'); $Puxa_titulo =…
-
0
votes1
answer22
viewsHandling data Websevice json
When running a url returns me the data below. I’m trying to treat it more I don’t know how to do it because the first time I work with json and the variables are empty what I’m doing wrong already…
-
0
votes1
answer212
viewsSending numeric value of an Enum by HTTP request in Java
I have a problem in my system, in my back-end in Java com Spring Boot I have a class that has a property that’s kind of a Enum that I created, and my Front-end which is in Angular when making a…
-
0
votes1
answer2086
viewshow to translate a JSON
I have a JSON here with 1000 objects inside an array, ta in English, the problem and I want to translate to pt-Br and when I use google translator simply Buga, for example { "Description": "Do you…
-
0
votes0
answers76
viewsAccess from a dictionary in flask via POST
How could I access a dictionary element using POST in flask? I have lists to simulate a comic and through the POST, I would like to try to access them. Function code:…
-
0
votes2
answers41
viewsHow to group Jsons by data?
I need to transform data that would come in the following structure: [ {id_fornecedor: '100', id_pedido: '9000', id_produto: '4455', quantidade: '5' }, {id_fornecedor: '100', id_pedido: '9000',…
-
0
votes1
answer31
viewsChange array Response to object
I’m doing a get and the answer is coming like this: [ {"cep":"01050-070", "rua":"Rua Álvaro de Carvalho", "bairro":"Centro", "cidade":"São Paulo", "estado":"SP"} ] I’d like Re sponse to come like…
-
0
votes1
answer53
viewsjson manipulation via command line
I’m using the jq to manipulate json via command line. Having as input a json obtained via gitlab api: [ { "id": 001, "description": "Uma descrição teste", "ssh_url_to_repo":…
-
0
votes0
answers101
viewsHow to transform a JSON with Jolt?
I have a json which contains categories and subcategories, I would like to transform it using Jolt. Thereof: [ { "id": 1, "name": "Alimentos", "children": [ { "id": 2, "name": "Arroz" }, { "id": 3,…
-
0
votes1
answer102
viewsset select option to Selected with value coming from a JSON
Good afternoon friends! I have a modal with a city edit form that carries data coming from a JSON. Everything works. The problem now is that mine does not select the correct state. My JSON returns…
-
0
votes2
answers135
viewsSend JSON Javascript data to PHP
I am trying to send data in javascript json format to php according to the codes below. However, the result of var_dump($_data) is always NULL. I tested the javascript activity array and it is ok,…
-
0
votes1
answer80
viewsProblem reading json file using PHP
I’m trying to save and search information inside a json file using php, my problem is that when I add more than one record in the file, when I use json_decode is returned to me null. I want to know…
-
0
votes1
answer89
viewsHow to mount a Json with Jackson having the model classes?
I have the following classes: public class OnesignalRequestModel { private String app_id; private List<IDModelJson> include_player_ids; private ContentJsonModel content; public String…