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
answer53
viewsBecause when I’m treating an error it doesn’t load the _Layout file?
I am doing an error handling using Json Result, when displaying the error message I should display the page formed as it rules in the _Layout file, so the page is loading all blank, does anyone know…
-
0
votes1
answer31
viewsPhp Json Enconde Error
I’m trying to solve a problem always PHP is returning the Else code "Wrong administrator password." But the fact is that the password is correct... Well I tried everything so far. <?php $email =…
-
0
votes0
answers669
viewsCreate JSON in a txt file
How do I turn a.txt file into json ? $linhas = fopen ("sections.txt", "r"); //percorre while (!feof ($linhas)){ $ponteiro = fgets($linhas, 1096); $valores = preg_split("[/]",$ponteiro); $paraTxt =…
-
0
votes1
answer307
viewsHow to join two tables in a JSON
I have two tables: Companies id: integer nome: string Imagery id: intger idEmpresa: integer url: string Do: select * from empresas where id = 1 select * from imagens where idempresa = 1 and I get a…
-
0
votes2
answers559
viewsUpload csv file with ajax, json, php and Mysql
I’m trying to make a import file csv to the MySQL dealing with errors with JSon but I’m not succeeding, even with a basic test I can return the message, always falls in the else of if. This is the…
-
0
votes2
answers158
viewsHow to store value in a string object and display that element on another page?
My job myFunction picks up the elements username and password typed,and sends these values storing in a global variable to the next page. My job tToken authenticate this information and play to next…
-
0
votes2
answers138
viewsPopular class with json
I got this json coming from my service { "CorIndicador":"VERMELHO", "DadosIndicador":"{\"Previsto\":25784.686452608872,\"Realizado\":95258.9557949728}", "TipoIndicador":1 } And I got that class…
-
0
votes1
answer42
viewsI am looking for a way to transform JSON into a table automatically in the chorme
My university has a really crappy website, so I set up some schematics to be notified on Discord (using a plugin called Distill and a webhook) every time there’s a change in a note. However, the…
-
0
votes1
answer1150
viewsTurn Httpresponsemessage return to JSON
My API currently returns database values in JSON. If no value is found, I return one HttpResponseMessage with error code 404. However, when testing the request, only the message contained in Content…
-
0
votes0
answers104
viewsProblem handling json object in ajax request
I have a function that makes a register in the database via ajax and soon after searches that same object in the database to add the information related to it without reloading the page. var…
-
0
votes1
answer42
viewsSave information from an array to each function call
have a function in my javascript code, in this function is filled information in a variable that will be added at the position of a vector, I will try to illustrate with parts in pseudocode the…
-
0
votes1
answer182
viewsdoubts with jsPdf - column definition
I have the following json { "MedPaciente": [ { "ProdutoModel": { "LaboratorioModel": { "id_laboratorio": 7951, "nome": "BOEHRINGER INGELHEIM", "data_cad": "28/12/2017", "situacao": 1 },…
-
0
votes1
answer63
viewsdoubt with nesting json / array
have this json { "MedPaciente": [ { "ProdutoModel": { "LaboratorioModel": { "id_laboratorio": 7951, "nome": "BOEHRINGER INGELHEIM", "data_cad": "28/12/2017", "situacao": 1 }, "id_produto": 232,…
-
0
votes1
answer927
viewsJavascript function always returns Undefined
I know there are several similar questions, but none of the solutions presented worked :( I have this function which receives data per parameter: function funcao(valor) { var a; $.getJSON(/* aqui…
-
0
votes0
answers86
viewsImage Upload with Ajax (fakepatch) to PHP
I’m taking data from a form (HTML) to register in my database, the data is coming as follows in the Firefox Console. http://prntscr.com/ig4kcm. In my view the problem seems to be in the $_FILE…
-
0
votes1
answer146
viewsSet Value Default @Html.Dropdownlistfor via Json - ASP.NET MVC5
I am making a timekeeping page using ASP.NET MVC5. The user enters the markup data as shown below: However, if any error occurs in the registration of the tag, the controller returns the model to…
asp.net-mvc .net json asp.net asp.net-mvc-5asked 6 years, 9 months ago Wagner Barbosa Do Nascimento 43 -
0
votes1
answer498
viewsAjax request does not work
I have 3 files: novaDose.php: <label for="busca">Buscar cidadão:</label> <input type="text" class="form-control" id="busca" placeholder="Digite parte do nome ou o CNS"…
-
0
votes1
answer181
viewsError accessing JSON with Ajax jquery
I’m getting a JSON that I created with PHP as described below, however, when I try to access the properties of this JSON he always returns to me Undefined. I made these test files there to…
-
0
votes1
answer30
viewsJSON return in the desired format from SQL
I am trying to get the following return in Mysql: { matricula : '123', periodo : [ {id : '012016', titulo: 'Janeiro 2016'}, {id : '022016', titulo: 'Fevereiro 2016'}, {id : '032016', titulo: 'Março…
-
0
votes1
answer134
viewsRecyclerview with JSON analysis
My PHP code generates the following JSON: { "resposta":[ { "cd_servico":"1", "ds_servico":"NOME SERVICO", "ITEMS":[ { "ds_descricao1":"DESCRICAO SERVICO", "ds_descricao2":"DESCRICAO 2",…
-
0
votes2
answers271
viewsUndefined when trying to use the received valid JSON
I’m having a hard time finding the error, I’ve been looking here for hours. I am receiving a PHP JSON using Jquery, I can visualize it as can see below the result of the answer "date": { "sucesso":…
-
0
votes0
answers110
viewsAbout Snippets in VS Code
hello, I use Visual Studio Code, I’m a beginner in programming and I wanted a help to assemble snippets in VS Code, I wanted to create snippets for basic functions of C language, like printf and…
-
0
votes0
answers99
viewsHow do I make a list nested via json with Aravel?
I’m trying to make a nested list via json, with the Aravel, example, the companies table, has several products each company, I want when I click on a particular company, appear the registered…
-
0
votes2
answers311
viewsList Json in a Select with Jquery
I’m not getting lists of a Json in a Select My Jquery code looks like this: $("#cidades").change(function () { var options_escolas = ''; var cidade = $("#cidades").val(); $.ajax({ url:…
-
0
votes1
answer490
viewsAuthentication with 3 Json Web Token (JWT) parameters?
I am doing a login system with Laravel using JWT, however I need to pass 3 parameters, being them an identifier, user and password. I can get those parameters, but I can’t authenticate with the…
-
0
votes1
answer88
viewsHow to structure multidimensional array with json
Good night!! I have a json that returns in this format: {rua: "A01", col: "01D", alt: "A"},{rua: "A01", col: "01D", alt: "B"},{rua: "A01", col: "01D", alt: "C"},{rua: "A01", col: "01D", alt: "D"}…
-
0
votes1
answer273
viewsGenerate JSON array by PHP
I’m studying a way to send a PHP JSON response to JS. I’ve looked at several posts here and in other forums, but I can’t find my mistake. I make a SELECT of everything in a Mysql table through PHP,…
-
0
votes0
answers74
viewsError creating a Jsonobject object
I’m trying to create a WebService return to me one or more data from the database, using as return JSON. @Path("teste") @Produces(MediaType.APPLICATION_JSON) public JSONObject teste() { JSONObject…
-
0
votes1
answer105
views -
0
votes2
answers168
viewsPROBLEM WITH AJAX JSON
IMG_TROCAR.PHP file code <?php include_once('config/config.php'); $ligacao = new PDO("mysql:dbname=$baseDado;host=$host", $user, $pass); $id = $_POST['id_user']; $mudarAvatar =…
-
0
votes1
answer911
viewsIntegration with Asaas boleto API
Someone around here has already made integration with the Asaas billet system follows the link in case someone wants to take a look there https://asaasv3.docs.apiary.io I was kind of wondering if…
-
0
votes2
answers174
viewsHow to transform multiple JSON into only valid JSON with json_encode in PHP
Hello! I have a script that at the end of each while loop prints a json echo json_encode($retorno); The result when running the script is (example bringing several results) { "IdClienteLS": 1695,…
-
0
votes1
answer1074
viewsPick up child object - firebase
I have a firebase bank in this structure: { "-L4Wqs3YbAlUgTWElF4Q" : { "receita" : { "-L6m_C46-Mj1py6RtF8H" : { "imagem" : "default", "ingrediente" : [ "ovo", "leite" ], "nome" : "um nome",…
-
0
votes1
answer998
viewsCan someone explain this part to me in JSON please?? (Wordpress Plugin)
Guys, good morning, I’m going to go into as much detail as I can to see if anyone can understand me and help me... I have the following Plugin installed on Wordpress:…
-
0
votes2
answers11323
viewsView data from a Json file in HTML
I’m stuck in a situation where I can’t turn the data blocks of the JSON file into HTML, nothing appears. Below I will put the codes for you to take a look NOTE: If you can refer me to a legal JSON…
-
0
votes1
answer158
viewsHow to echo the value of a variable from the query result
To automate my process of generating one JSON, i save the variable name in the database (Ex: $teste_value_1). In my php file. i have the value of this variable, for example $teste_value_1 = "Isso é…
-
0
votes1
answer753
viewsGet values from a json / object
I have the following json: And 2 selects, one for state and one for city, I have already filled the status correctly using this json: //combobox estados…
-
0
votes1
answer1781
viewsAPI error FIPE table
I am using an API to consume data from the FIPE table for filling a form. I can consume the FIPE field Brand and Year, however, the vehicle field of error. Documentation link:…
-
0
votes1
answer199
viewsHow to concatenate two strings and save the result in a variable?
I’m wearing a API to capture proxies. She returns to me the proxies in format JSON, as follows: { "_links": { "_self": "\ / proxy", "_parent": "\ /" }, "ip": "45.55.23.78", "porto": 1080,…
-
0
votes0
answers105
viewsHow to use EF Core with inheritance correctly and capture foreign key objects?
I’m using the Entity Framework Core, and I have a model that uses heritage. I use the TPH (Table Per Hierarchy) pattern that maps all classes of the same super class in the same table and uses a…
-
0
votes1
answer1918
viewsSend variables via GET by php Ajax
I am creating a page in PHP that makes a query in a JSON/PHP via ajax and I need it to send to the URL, the form variables so I can make a query in this JSON/PHP. HTML: <form method="GET"…
-
0
votes1
answer422
viewsGet specific value from a JSON JAVA URL
Good morning Friends. I’m having a hard time handling information collected in a third-party online JSON url, my APP needs information from various websites that send back different ways in JSON…
-
0
votes1
answer113
viewsSerealize a JSON String C#
I wanted to set up a JSON String, but I can’t create the class the way I need to, I can get information up to the first level, but I can’t create sub-keys. For example I want the string to be {…
-
0
votes0
answers68
viewsCalling class that generates JSON
Good morning! I am breaking my head to recover the Class that generates JSON, I have the following class name apiBusca.php public function enviarRequisicao() { $url = 'API'; $json = new StdClass();…
-
0
votes1
answer64
viewsCheckbox does not load returned data in JSON
I’m having trouble loading a checkbox (<select>) using C# MVC with Json. The method returns the complete list with objects, but does not click on the checkbox. Man Controller: public…
-
0
votes2
answers90
viewsPhp error api youtube
I was using until 2 weeks ago the code below to list the name of the video through the API youtube. Code: <?php $dados ="Roberto Carlos"; $video_list =…
-
0
votes1
answer72
viewsAsynctask result
I rephrased the question again to try to clarify better the need of my situation: I need to run between asa Activity s the following operation, when clicking the button, the application sends…
-
0
votes1
answer1723
viewsSend a POST request with java
I need to submit a POST request to the following address which is an Amazon API: https://ikd29r1hsl.execute-api.us-west-1.amazonaws.com/prod/contaazul/grade And in this request a JSON has to be…
-
0
votes1
answer30
viewsSpinner Json and Arraylist
I’m starting on Android development and I’m having a tense doubt here. I have to return a Json like this: [ { "codTransportadora":295, "NomeTransportadora":"UTILISSIMO", "codEmpresa":3122 }, {…
-
0
votes1
answer925
viewsHow to convert a Json file to a list of objects in Java?
I am trying to read the data from a. json file and store them in a ArrayList<> of objects, but an error is occurring that I do not know what it means. Sale class - To store the data that will…